//MLBluetoothSDK/com.masterlock.mlbluetoothsdk/MLProduct/enableAutoRelock
enableAutoRelock¶
[androidJvm]\ open fun enableAutoRelock(seconds: Int, callback: MLCommandCallback<String>)
For D1000 Deadbolt only with minimum FW version 1772468928: Enables auto-relock functionality. Auto-relock timing is determined by the door position sensor state:
- Door sensor enabled, door closed on unlock: The timeout begins immediately. The lock relocks when the timeout expires.
- Door sensor enabled, door opened after unlock: The timeout is suspended while the door is open. When the door is closed, the timeout restarts from the beginning and the lock relocks once it expires. If the door is opened and closed multiple times, the timeout restarts each time the door closes.
- Door sensor disabled: The timeout begins immediately on unlock and the lock relocks when it expires, regardless of door position.
Parameters¶
androidJvm
| seconds | Timeout value between 4-255 seconds before automatic relock occurs |
| callback | Returns "Success" if successful, error otherwise |