Hierarchy

  • NativeEventEmitter
    • BILoggerEmitter

Constructors

  • Parameters

    • Optional nativeModule: NativeModule

      the NativeModule implementation. This is required on IOS and will throw an invariant error if undefined.

    Returns BILoggerEmitter

Methods

  • Parameters

    • event: "BeyondIdentityLogger"
    • listener: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • Optional context: any

    Returns EmitterSubscription

  • Emits an event of the given type with the given data. All handlers of that particular type will be notified.

    Parameters

    • eventType: string

      Name of the event to emit

    • Rest ...params: any[]

    Returns void

    Example

    emitter.addListener('someEvent', function(message) {
    console.log(message);
    });

    emitter.emit('someEvent', 'abc'); // logs 'abc'
  • Returns the number of listeners that are currently registered for the given event.

    Parameters

    • eventType: string

      Name of the event to query

    Returns number

  • Parameters

    • eventType: string

      name of the event whose registered listeners to remove

    Returns void

  • Removes a subscription created by the addListener, the EventSubscription#remove() function actually calls through to this.

    Parameters

    • subscription: EmitterSubscription

    Returns void

Generated using TypeDoc