@launchdarkly/react-native-client-sdk - v10.23.6
    Preparing search index...

    Interface LDEmitter

    Implementation Note: There should not be any default listeners for change events in a client implementation. Default listeners mean a client cannot determine when there are actual application developer provided listeners. If we require default listeners, then we should add a system to allow listeners which have counts independent of the primary listener counts.

    interface LDEmitter {
        emit(name: LDEmitterEventName, ...detail: any[]): void;
        eventNames(): string[];
        listenerCount(name: LDEmitterEventName): number;
        off(name: LDEmitterEventName, listener?: (...args: any[]) => void): void;
        on(name: LDEmitterEventName, listener: (...args: any[]) => void): void;
    }
    Index
    • Parameters

      Returns void

    • Returns string[]

    • Unsubscribe one or all events.

      Parameters

      • name: LDEmitterEventName
      • Optionallistener: (...args: any[]) => void

        Optional. If unspecified, all listeners for the event will be removed.

      Returns void

    • Parameters

      Returns void