Quick Start
iOS
Last updated
iOS
Last updated
This snippet assumes that the required configurations and permissions are already setup to work. Check section for more details.
The will look something like this:
If the provided was invalid, the SDK will not initialize and complete with .authInvalid
. Check for more details about possible outcomes.
The host app is expected to monitor updates viaauthStateChangeListener
() API and handle those changes accordingly.
Check for more details about authentication expiry and renewal.
allows host apps to configure which of the licensed Move services should be enabled. It could be based on each user preference or set from a remote server.
Based on the passed on , the SDK determines the required permissions to activate the requested services.
The host app must verify that all the permissions required for the passed configs are granted.
In case the required permissions were missing when calling SDK API, the will transit to permissionMissing
error other than ready
.
Check for details about permissions required for each service.
The will look something like this:
The host app is expected to set its before initializing the SDK to intercept the changes caused by calling the API.
The provided block could then start the SDK when is ready
or handle errors if occurred. The provided block could look something like this:
Only calling API will transit is ready state.
TheAPI must be executed beforereturns. We recommend calling it in . Exceptions might apply, where the SDK is not initialized on app launch. First initialization is a good example, where the app would only initialize the SDK after onboarding the user and requesting permissions. Check for more details about the importance of adequately initializing the SDK.