public class ScrollEvent extends Event<ScrollEvent>
Modifier and Type | Method and Description |
---|---|
boolean |
canCoalesce() |
void |
dispatch(RCTEventEmitter rctEventEmitter)
Dispatch this event to JS using the given event emitter.
|
short |
getCoalescingKey() |
java.lang.String |
getEventName() |
static ScrollEvent |
obtain(int viewTag,
ScrollEventType scrollEventType,
int scrollX,
int scrollY,
float xVelocity,
float yVelocity,
int contentWidth,
int contentHeight,
int scrollViewWidth,
int scrollViewHeight) |
void |
onDispose()
Called when the EventDispatcher is done with an event, either because it was dispatched or
because it was coalesced with another Event.
|
coalesce, getTimestampMs, getUniqueID, getViewTag, init
public static ScrollEvent obtain(int viewTag, ScrollEventType scrollEventType, int scrollX, int scrollY, float xVelocity, float yVelocity, int contentWidth, int contentHeight, int scrollViewWidth, int scrollViewHeight)
public void onDispose()
Event
onDispose
in class Event<ScrollEvent>
public java.lang.String getEventName()
getEventName
in class Event<ScrollEvent>
public short getCoalescingKey()
getCoalescingKey
in class Event<ScrollEvent>
public boolean canCoalesce()
canCoalesce
in class Event<ScrollEvent>
public void dispatch(RCTEventEmitter rctEventEmitter)
Event
dispatch
in class Event<ScrollEvent>