receive Event
This method dispatches events from RN Android code to JS. The delivery of this event will not be queued in EventDispatcher class.
Parameters
react Tag
tag
event Name
name of the event
event
parameters
open fun receiveEvent(surfaceId: Int, reactTag: Int, eventName: String, @Nullable params: WritableMap)
This method dispatches events from RN Android code to JS. The delivery of this event will not be queued in EventDispatcher class.
Parameters
surface Id
react Tag
tag
event Name
name of the event
event
parameters
open fun receiveEvent(surfaceId: Int, reactTag: Int, eventName: String, canCoalesceEvent: Boolean, @Nullable params: WritableMap, eventCategory: Int)
receiveEvent API that emits an event to C++. If `canCoalesceEvent` is true, that signals that C++ may coalesce the event optionally. Otherwise, coalescing can happen in Java before emitting.
`customCoalesceKey` is currently unused.
Parameters
surface Id
react Tag
event Name
can Coalesce Event
params
event Category
open fun receiveEvent(surfaceId: Int, reactTag: Int, @NonNull eventName: String, canCoalesceEvent: Boolean, @Nullable params: WritableMap, eventCategory: Int, experimentalIsSynchronous: Boolean)