unlock
Opens a new activity which attempts to unlock the device identified by deviceID.
The activity will ask for any permissions needed by the SDK. Errors regarding invalid states such as Bluetooth disabled are displayed to the user within the activity.
Return
SessionMissing if the SDK is not configured with a valid token bundle
AccessNotFound if no access exists for deviceID
UnlockCanceled if the user canceled the unlock
OperationInProgress if a configure or another unlock is already in progress
UnlockFailure if the unlock failed for any other reason (such as Bluetooth issues)
nullif the device was successfully unlocked
Parameters
activity
the foreground activity to launch from and receive the result on
device ID
the ID of the device to unlock