Package 

Class EventEmitterWrapper


  • 
    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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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()