public class TouchEvent extends Event<TouchEvent>
MotionEvent.
TouchEvent coalescing can happen for move events if two move events have the same target view and
coalescing key. See TouchEventCoalescingKeyHelper for more information about how these
coalescing keys are determined.| Constructor and Description |
|---|
TouchEvent(int viewTag,
TouchEventType touchEventType,
android.view.MotionEvent motionEventToCopy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCoalesce() |
void |
dispatch(RCTEventEmitter rctEventEmitter)
Dispatch this event to JS using the given event emitter.
|
void |
dispose()
Called when the EventDispatcher is done with an event, either because it was dispatched or
because it was coalesced with another Event.
|
short |
getCoalescingKey() |
java.lang.String |
getEventName() |
coalesce, getTimestampMs, getViewTagpublic TouchEvent(int viewTag,
TouchEventType touchEventType,
android.view.MotionEvent motionEventToCopy)
public java.lang.String getEventName()
getEventName in class Event<TouchEvent>public boolean canCoalesce()
canCoalesce in class Event<TouchEvent>public short getCoalescingKey()
getCoalescingKey in class Event<TouchEvent>public void dispatch(RCTEventEmitter rctEventEmitter)
Eventdispatch in class Event<TouchEvent>public void dispose()
Eventdispose in class Event<TouchEvent>