Hierarchy

Implements

  • LDClient

Constructors

  • Creates the client object synchronously. No async, no network calls.

    Parameters

    Returns LDClientImpl

Properties

_baseHeaders: any
_checkedContext?: any
_config: any
_createIdentifyPromise: any
_diagnosticsManager?: any
_eventFactoryDefault: any
_eventFactoryWithReasons: any
_eventProcessor?: any
_eventSendingEnabled: any
_flagManager: any
_handleInspectionChanged: any
_highTimeoutThreshold: any
_hookRunner: any
_inspectorManager: any
_typedEval: any
_uncheckedContext?: any
_updateProcessor?: any
_variationInternal: any
autoEnvAttributes: AutoEnvAttributes
dataManager: DataManager
emitter: LDEmitter
logger: LDLogger
platform: Platform
sdkKey: string

Methods

  • Parameters

    Returns void

  • Returns LDFlagSet

  • Parameters

    • key: string
    • defaultValue: boolean

    Returns boolean

  • Parameters

    • key: string
    • defaultValue: boolean

    Returns LDEvaluationDetailTyped<boolean>

  • Returns Promise<void>

  • Returns Promise<{
        error?: Error;
        result: boolean;
    }>

  • Returns undefined | LDContext

  • Returns undefined | Context

  • Identifies a context to LaunchDarkly. See LDClient.identify.

    Parameters

    Returns Promise<void>

    A Promise which resolves when the flag values for the specified context are available. It rejects when:

    1. The context is unspecified or has no key.

    2. The identify timeout is exceeded. In client SDKs this defaults to 5s. You can customize this timeout with identifyOptions.

    3. A network error is encountered during initialization.

  • Parameters

    • key: string
    • defaultValue: unknown

    Returns unknown

  • Parameters

    • key: string
    • defaultValue: unknown

    Returns LDEvaluationDetailTyped<unknown>

  • Parameters

    • key: string
    • defaultValue: number

    Returns number

  • Parameters

    • key: string
    • defaultValue: number

    Returns LDEvaluationDetailTyped<number>

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Enable/Disable event sending.

    Parameters

    • enabled: boolean

      True to enable event processing, false to disable.

    • flush: boolean

      True to flush while disabling. Useful to flush on certain state transitions.

    Returns void

  • Parameters

    • key: string
    • defaultValue: string

    Returns string

  • Parameters

    • key: string
    • defaultValue: string

    Returns LDEvaluationDetailTyped<string>

  • Parameters

    • key: string
    • Optional data: any
      Optional
    • Optional metricValue: number
      Optional

    Returns void

  • Parameters

    • flagKey: string
    • Optional defaultValue: any
      Optional

    Returns any

  • Parameters

    • flagKey: string
    • Optional defaultValue: any
      Optional

    Returns LDEvaluationDetail

Generated using TypeDoc