BackgroundSdkState

Represents the possible states of the Background SDK.

The SDK transitions between these states based on user actions and API calls. The state flow can be observed to react to state changes in the application.

Entries

Link copied to clipboard

Uninitialized and off duty state. This is the initial state before the SDK is initialized. In this state, most SDK features are unavailable. Call LocalzBackgroundSDK.initialize to transition to the INITIALIZED state.

Link copied to clipboard

Initialized and off duty state. The SDK has been initialized but no user is logged in. Basic SDK features are available, but user-specific operations require login. Call login methods to transition to the LOGGED_IN state.

Link copied to clipboard

Initialized, off duty and logged in state. A user is authenticated with the SDK, but not actively on duty.

Link copied to clipboard

Logged in and on duty state. A user is authenticated and actively on duty.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.