/** * Event triggered when a Component enters the Focused Range. This happens when either the Component * occupies at least half of the viewport or, if the Component is smaller than half of the viewport, * when the it is fully visible. */ @Event public class FocusedVisibleEvent { }
/** * Components should implement an event of this type in order to receive callbacks to * {@link android.support.v4.view.AccessibilityDelegateCompat#onPopulateAccessibilityEvent( * View, AccessibilityEvent)} */ @Event public class OnPopulateAccessibilityEventEvent { public View host; public AccessibilityEvent event; public AccessibilityDelegateCompat superDelegate; }
/** * Event triggered when a Component exits the Focused Range. The Focused Range is defined as * at least half of the viewport or, if the Component is smaller than half of the viewport, * when the it is fully visible. */ @Event public class UnfocusedVisibleEvent { }
/** * Components should implement an event of this type in order to receive callbacks to * {@link * android.support.v4.view.AccessibilityDelegateCompat#onInitializeAccessibilityNodeInfo( * View, AccessibilityNodeInfoCompat)} */ @Event public class OnInitializeAccessibilityNodeInfoEvent { public View host; public AccessibilityNodeInfoCompat info; public AccessibilityDelegateCompat superDelegate; }
/** * An {@link Event} that is handled by a * {@link HideableDataDiffSectionSpec} to remove an edge from the {@link DataDiffSection} * * @param model the edge model object. */ @Event public class HideItemEvent { public Object model; }
/** * An event used internally to propagate exceptions up the hierarchy. Don't use this directly. Use * {@link com.facebook.litho.annotations.OnError} instead. */ @Event public class ErrorEvent { /** The exception that caused the error event to be raised. */ public Exception exception; }
/** * Components should implement an event of this type in order to receive callbacks to * {@link android.support.v4.view.AccessibilityDelegateCompat#sendAccessibilityEvent(View, int)} */ @Event public class SendAccessibilityEventEvent { public View host; public int eventType; public AccessibilityDelegateCompat superDelegate; }
/** * An event that a {@link RecyclerBinder} can trigger to notify the {@link Recycler} that it should * re-measure. */ @Event public class ReMeasureEvent { }
/** Event sent to Spinner once an item has been selected. */ @Event public class ItemSelectedEvent { public String newSelection; }
/** * Event triggered when focus changes on a Component. */ @Event public class FocusChangedEvent { public View view; public boolean hasFocus; }
/** * This event is triggered by {@link DataDiffSectionSpec} when it needs to verify whether two model * objects represent the same item in the collection. * * todo(t16485443): The generic type declaration(OnCheckIsSameItemEvent<TEdgeModel>) * is temporarily removed until the bug in the attached task is fixed. */ @Event(returnType = Boolean.class) public class OnCheckIsSameItemEvent { public Object previousItem; public Object nextItem; }
/** * Event sent by EditText when the text entered by the user changes. */ @Event public class TextChangedEvent { public EditText view; public String text; }
/** * Event sent by EditText when the selection (particular case: cursor position) gets changed by user */ @Event public class SelectionChangedEvent { public int start; public int end; }
/** * Event triggered when a Component enters the Visible Range. This happens when at least a pixel of * the Component is visible. */ @Event public class VisibleEvent { }
/** * This event is triggered by {@link HideableDataDiffSectionSpec} when it needs to * get a unique identifier for the edge model provided. */ @Event(returnType = Object.class) public class GetUniqueIdentifierEvent { public Object model; }
/** * Components should implement an event of this type in order to receive callbacks to * {@link * android.view.View.AccessibilityDelegate#performAccessibilityAction(View, int, Bundle)} */ @Event(returnType = boolean.class) public class PerformAccessibilityActionEvent { public View host; public int action; public Bundle args; public AccessibilityDelegateCompat superDelegate; }
/** * Components should implement an event of this type in order to receive callbacks to * {@link * android.support.v4.view.AccessibilityDelegateCompat#sendAccessibilityEventUnchecked( * View, AccessibilityEvent)} */ @Event public class SendAccessibilityEventUncheckedEvent { public View host; public AccessibilityEvent event; public AccessibilityDelegateCompat superDelegate; }
/** * This event is triggered by {@link DataDiffSectionSpec} when it needs to verify whether two model * objects that represent the same item also have the same content. * * todo(t16485443): The generic type declaration(OnCheckIsSameContentEvent<TEdgeModel>) * is temporarily removed until the bug in the attached task is fixed. */ @Event(returnType = Boolean.class) public class OnCheckIsSameContentEvent { public Object previousItem; public Object nextItem; }
/** * Components should implement an event of this type in order to receive callbacks to * {@link View#dispatchPopulateAccessibilityEvent(AccessibilityEvent)} */ @Event(returnType = boolean.class) public class DispatchPopulateAccessibilityEventEvent { public View host; public AccessibilityEvent event; public AccessibilityDelegateCompat superDelegate; }
/** * Event sent by EditText when the return key is pressed or the IME signals an 'action'. Return true * if the handler consumed the event. */ @Event(returnType = boolean.class) public class EditorActionEvent { public int actionId; public KeyEvent event; }