finalize Lock
open override fun finalizeLock(deviceName: String, onResult: (Result<FinalizeLockSuccess>) -> Unit)
Content copied to clipboard
Finalizing lock should be done after prepareEndRental to clear all the outstanding cache and disconnecting of the bluetooth lock. Note that once the lock is finalized, it is not possible to do any more of lock actions.
Parameters
device Name
String value of the given lock device name
on Result
callback provides the FinalizeLockSuccess if it was successful, or Throwable in the case of any errors
Throws
Uninitialized Sdk Error
(bike.donkey.lockkit.errors.UninitializedSdkError) if the SDK has not been successfully initialized