Setup
Last updated
Last updated
Before services can be started a user object must be setup to use the SDK and a services configuration must be provided (see iOS Quick Start).
Authenticates a user to be used with the SDK.
Setup with auth tokens:
Deprecated, use setup(authCode: ...) instead
Change the config originally passed in setup.
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 MoveAuth. The host app was expected to fetch a new MoveAuth using its project API key and pass it to the MoveSDK using the following API:
Deprecated: Token expiry is no longer a valid auth state forwarded to the app and does not need to be handled.
Gets the current MoveAuthState.
Provide a block to be invoked every time MoveAuthState changes.
The host app is expected to monitor MoveAuthState updates viaauthStateUpdateListener
API and handle those changes accordingly.
Check Authentication updates and expiry for more details about authentication expiry and renewal.
Provide a block to be invoked when configuration fetch failed.
Shutdown SDK shared instance.
Stops SDK services, send the queued user data, and de-initializes the SDK. After that is executed, the MoveSDKState will transit to .uninitialized
.
Precondition: SDK user/config should be setup.
Parameters
authCode
String
Auth code.
config
Move services configuration.
options
Move SDK service options dict.
callback
Called after setup with result.
Parameters
auth
User account object.
config
Move services configuration.
options
Move SDK service options dict.
Parameters
config
Move services configuration.
Return
Latest SDK State
Callback
Block that gets invoked every time MoveAuthState is updated.
Callback
Block that gets invoked every time configuration fetch from the server failed.
Parameters
Default
force
true
If true, shutdown executes immediately. Pending Data may be lost.
callback
nil
Returns a MoveShutdownResult upon completion. May fail if not forced.