Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • addSdkEventListener<_Event, ListenerFn>(sdkEvent: _Event, listenerFn: ListenerFn): void
  • description

    Add listener for a given SdkEvent

    since

    2.24.0

    example
    addSdkEventListener(SdkEvent.INITIALISED, function onSdkInitialisation(userProfile){
    console.log(userProfile);
    })

    Type Parameters

    Parameters

    • sdkEvent: _Event
    • listenerFn: ListenerFn

    Returns void

  • removeSdkEventListener<_Event, ListenerFn>(sdkEvent: _Event, listenerFn: ListenerFn): void
  • description

    Remove registered listenerFn for the given SdkEvent, when no listener passed, all registered event listener will be removed

    since

    2.24.0

    example
    removeSdkEventListener(SdkEvent.INITIALISED, onSdkInitialisation);
    

    Type Parameters

    Parameters

    • sdkEvent: _Event
    • listenerFn: ListenerFn

    Returns void

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Enumeration

Generated using TypeDoc