unlock

suspend fun unlock(activity: ComponentActivity, deviceID: String): ParakeyError.UnlockError?

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

Parameters

activity

the foreground activity to launch from and receive the result on

deviceID

the ID of the device to unlock