Optional
nativeModule: NativeModulethe NativeModule implementation. This is required on IOS and will throw an invariant error if undefined.
Add the specified listener, this call passes through to the NativeModule addListener
name of the event for which we are registering listener
the listener function
Optional
context: Objectcontext of the listener
Emits an event of the given type with the given data. All handlers of that particular type will be notified.
Name of the event to emit
Returns the number of listeners that are currently registered for the given event.
Name of the event to query
name of the event whose registered listeners to remove
Removes a subscription created by the addListener, the EventSubscription#remove() function actually calls through to this.
Abstract base class for implementing event-emitting modules. This implements a subset of the standard EventEmitter node module API.