//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLProduct/unlock
unlock¶
[androidJvm]\ open fun unlock(mechanism: MechanismOptions, seconds: Int, userCallback: MLCommandCallback<String>)
Queues an unlock command to this MLProducts associated physical lock
Parameters¶
androidJvm
| mechanism | Which mechanism to unlock Primary/Secondary |
| seconds | Seconds to remain unlocked before automatic relock on supported locks |
| userCallback | result with "Success" if is successful error null or type of Exception if unsuccessful |
[androidJvm]\ open fun unlock(mechanism: MechanismOptions, callback: MLCommandCallback<String>)
Queues an unlock command to this MLProducts associated physical lock
Parameters¶
androidJvm
| mechanism | Which mechanism to unlock Primary/Secondary |
[androidJvm]\ open fun unlock(seconds: Int, callback: MLCommandCallback<String>)
Unlocks the Primary Lock mechanism
Parameters¶
androidJvm
| seconds | On devices with automatic re-lock, Duration before automatic re-lock in seconds If 0 is passed, automatic re-lock configuration from the lock will be used |
| callback | the result of the unlock command |