initialize Lock
open override fun initializeLock(deviceName: String, key: String, passkey: String, onResult: (Result<InitLockSuccess>) -> Unit)
Content copied to clipboard
Initializing of lock has to be done before any unlock, lock, prepareEndRental or finalizeLock This function needs to be called only once per rental. In case, initializeLock is called again later after some unlocking and locking, the lock might not be able to open due to the eKey getting reset.
Parameters
Throws
Uninitialized Sdk Error
(bike.donkey.lockkit.errors.UninitializedSdkError) if the SDK has not been successfully initialized