-
public class EventEmitterWrapperThis 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 voidinvoke(@NonNull() String eventName, @Nullable() WritableMap params, int eventCategory)Invokes the execution of the C++ EventEmitter. synchronized voidinvokeUnique(@NonNull() String eventName, @Nullable() WritableMap params, int customCoalesceKey)Invokes the execution of the C++ EventEmitter. synchronized voiddestroy()-
-
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()
-
-
-
-