Language to be used by all Subaio views 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.
Shared instance of the Subaio Manager.
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 Subaio views. Must be called before any views are initiated.
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.
Generated using TypeDoc
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.