@GetExtraAccessibilityNodesCount static int getExtraAccessibilityNodesCount( @Prop(optional = true, resType = ResType.BOOL) boolean accessibleClickableSpans, @FromBoundsDefined ClickableSpan[] clickableSpans) { return (accessibleClickableSpans && clickableSpans != null) ? clickableSpans.length : 0; }
@OnCreateTreeProp static TreePropStringType onCreateTreePropB( ComponentContext c, @Prop TreePropStringType propB) { return propB; }
@OnUpdateState public void testMethod( @Prop boolean testProp, @State int testState, @Param Object testPermittedAnnotation) { // Don't do anything. } }
@OnCreateLayout public void testMethod( @Prop boolean testProp, @State int testState, @Event Object testPermittedAnnotation) { // Don't do anything. }
@OnCreateLayout public Component onCreateLayout(ComponentContext c, @Prop String s) { return null; } }
@OnTrigger(TestEvent.class) public void testMethod( @Prop boolean testProp, @State int testState, @Param Object testPermittedAnnotation, @FromTrigger long arg4) { // Don't do anything. }