@OnBind static void onBind( ComponentContext c, MatrixDrawable mountedDrawable, @FromBoundsDefined Integer drawableWidth, @FromBoundsDefined Integer drawableHeight) { mountedDrawable.bind(drawableWidth, drawableHeight); }
@OnBind protected static void onBind( ComponentContext c, DraweeDrawable<GenericDraweeHierarchy> mountedDrawable, @Prop DraweeController controller) { mountedDrawable.setController(controller); if (controller != null) { controller.onViewportVisibilityHint(true); } }
@OnCreateInitialState @OnBind @Deprecated @SourceAnnotation static class TestClass {}
@OnBind static void onBind( final ComponentContext c, EditTextWithEventHandlers editText, @Prop(optional = true, varArg = "textWatcher") List<TextWatcher> textWatchers) { editText.attachWatchers(textWatchers); editText.setComponentContext(c); editText.setTextChangedEventHandler(TextInput.getTextChangedEventHandler(c)); editText.setSelectionChangedEventHandler(TextInput.getSelectionChangedEventHandler(c)); editText.setKeyUpEventHandler(TextInput.getKeyUpEventHandler(c)); editText.setEditorActionEventHandler(TextInput.getEditorActionEventHandler(c)); }
@OnBind static void onBind( ComponentContext c, EditTextWithEventHandlers editText, @Prop(optional = true) EditTextStateUpdatePolicy stateUpdatePolicy, @Prop(optional = true, varArg = "textWatcher") List<TextWatcher> textWatchers) { editText.setComponentContext(c); editText.setTextChangedEventHandler( com.facebook.litho.widget.EditText.getTextChangedEventHandler(c)); editText.setSelectionChangedEventHandler( com.facebook.litho.widget.EditText.getSelectionChangedEventHandler(c)); editText.setKeyUpEventHandler(com.facebook.litho.widget.EditText.getKeyUpEventHandler(c)); editText.setStateUpdatePolicy(stateUpdatePolicy); editText.attachWatchers(textWatchers); }
@OnBind public void testDelegateMethod( @Prop boolean arg0, @Prop @Nullable Component arg4, @Prop List<Component> arg5, @Prop List<String> arg6, @State int arg1, @Param Object arg2, @TreeProp long arg3, @TreeProp Set<List<Row>> arg7, @TreeProp Set<Integer> arg8) {}
@OnBind protected static void onBind( ComponentContext context,