Setup
Before services can be started a user object must be setup to use the SDK and a services configuration must be provided.
Last updated
Before services can be started a user object must be setup to use the SDK and a services configuration must be provided.
Last updated
Authenticates a user to be used with the SDK.
Parameters
auth
User account object.
config
Move services configuration.
Change the config originally passed in setup.
Parameters
config
Move services configuration.
Occasionally this functionality is needed for deployed apps when a projects configuration is updated on the backend.
Precondition: SDK user/config should be setup.
Updates SDK . On SDK auth expiry, the will trigger expired state. The host app is expected to fetch a new using its project API key and pass it to the MoveSDK using the following API:
Parameter
auth
Callback
completion
Precondition: SDK user/config should be setup.
Return
Latest SDK State
Callback
Provide a block to be invoked when configuration fetch failed.
Callback
MoveInitializationCallback
Block that gets invoked every time configuration fetch from the server failed.
Shutdown SDK shared instance.
Parameters
Default
force
true
If true, shutdown executes immediately. Pending Data may be lost.
callback
nil
Precondition: SDK user/config should be setup.
The user's updated object with the new token.
Block that gets invoked on auth update completion with an optional for potential updating errors.
Gets the current .
Provide a block to be invoked every time changes.
Block that gets invoked every time is updated.
The host app is expected to monitor updates viaauthStateUpdateListener
(Android / ) API and handle those changes accordingly.
Check for more details about authentication expiry and renewal.
Stops SDK services, send the queued user data, and de-initializes the SDK. After that is executed, the will transit to .uninitialized
.
Returns a upon completion. May fail if not forced.