finalizeLock

open override fun finalizeLock(deviceName: String, onResult: (Result<FinalizeLockSuccess>) -> Unit)

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

deviceName

String value of the given lock device name

onResult

callback provides the FinalizeLockSuccess if it was successful, or Throwable in the case of any errors

Throws

UninitializedSdkError

(bike.donkey.lockkit.errors.UninitializedSdkError) if the SDK has not been successfully initialized