wait For Lock Status Change
Waits for lock state change.
This method is used to wait for full lock state change, e.g to be sure the lock was opened or closed.
try {
closeLock()
waitForLockStatusChange(BluetoothConstants.LOCK_CLOSED)
openLock()
waitForLockStatusChange(BluetoothConstants.LOCK_OPENED)
} catch (e: Exception) {
uiSetupHelper.onFailureRequest(e)
}
Content copied to clipboard
Parameters
lock State
The lock state, e.g. BluetoothConstants.LOCK_OPENED, BluetoothConstants.LOCK_CLOSED.
timeout In Seconds
Timeout of waiting in seconds.