public abstract class Event<T extends Event>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Event(int viewTag,
long timestampMs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCoalesce() |
T |
coalesce(T otherEvent)
Given two events, coalesce them into a single event that will be sent to JS instead of two
separate events.
|
abstract 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() |
abstract java.lang.String |
getEventName() |
long |
getTimestampMs() |
int |
getViewTag() |
public final int getViewTag()
public final long getTimestampMs()
SystemClock.uptimeMillis()
base.public boolean canCoalesce()
public T coalesce(T otherEvent)
public short getCoalescingKey()
public void dispose()
public abstract java.lang.String getEventName()
public abstract void dispatch(RCTEventEmitter rctEventEmitter)