Singleton-class for managing global setup of subaio-views. Before creating views, manager.configure should be invoked.

The manager automatically maintains a valid token and requests new ones using the onTokenRequired callback whenever necessary.

Hierarchy

  • BridgeManager

Constructors

Accessors

  • get customConfig(): undefined | Record<string, string>
  • Custom named values (such as customizable colors) sent to the views.

    Returns undefined | Record<string, string>

  • set customConfig(customConfig): void
  • Parameters

    • customConfig: undefined | Record<string, string>

    Returns void

  • get initializationTimeout(): number
  • Amount of time in milliseconds to wait before abandoning a loading view.

    Returns number

  • get language(): null | string
  • Language to be used by all BridgeViews as a BCP-47 string. Assigning language automatically updates all views and triggers a token refetch if configure has already been called. If it is set to null or not set, views will never exit their loading-state.

    Returns null | string

  • set language(language): void
  • Parameters

    • language: null | string

    Returns void

Methods

  • Returns void

    Deprecated

    Token autorenewal has been removed, rendering this method obsolete


    Stop all token refresh logic in preparation for the manager being garbage collected. Only relevant if instances are created manually.

    Should never be called on the shared instance.

  • Global configuration for all BridgeViews. Must be called before any views are initiated.

    Parameters

    Returns void

  • Force a new fetch of authentication token. Useful when the user logs out to force current token to be removed from memory and any views to clear all user data.

    Returns void

Generated using TypeDoc