-
public class EventEmitterWrapper
This class holds reference to the C++ EventEmitter object. Instances of this class are created on the Bindings.cpp, where the pointer to the C++ event emitter is set.
-
-
Method Summary
Modifier and Type Method Description synchronized void
invoke(@NonNull() String eventName, @Nullable() WritableMap params, int eventCategory)
Invokes the execution of the C++ EventEmitter. synchronized void
invokeUnique(@NonNull() String eventName, @Nullable() WritableMap params, int customCoalesceKey)
Invokes the execution of the C++ EventEmitter. synchronized void
destroy()
-
-
Method Detail
-
invoke
synchronized void invoke(@NonNull() String eventName, @Nullable() WritableMap params, int eventCategory)
Invokes the execution of the C++ EventEmitter.
- Parameters:
eventName
- String name of the event to execute.params
- WritableMap payload of the event
-
invokeUnique
synchronized void invokeUnique(@NonNull() String eventName, @Nullable() WritableMap params, int customCoalesceKey)
Invokes the execution of the C++ EventEmitter. C++ will coalesce events sent to the sametarget.
- Parameters:
eventName
- String name of the event to execute.params
- WritableMap payload of the event
-
destroy
synchronized void destroy()
-
-
-
-