Interface AccessoryWithLockCurrentState
-
public interface AccessoryWithLockCurrentState
Accessory with current lock state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<LockCurrentStateEnum>
getLockCurrentState()
Retrieves the lock states.void
subscribeLockCurrentState(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in lock current state.void
unsubscribeLockCurrentState()
Unsubscribes from changes
-
-
-
Method Detail
-
getLockCurrentState
java.util.concurrent.CompletableFuture<LockCurrentStateEnum> getLockCurrentState()
Retrieves the lock states. The current state of the physical security mechanism (e.g. deadbolt)- Returns:
- a future with the value
-
subscribeLockCurrentState
void subscribeLockCurrentState(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in lock current state.- Parameters:
callback
- the function when the lock current state changes
-
unsubscribeLockCurrentState
void unsubscribeLockCurrentState()
Unsubscribes from changes
-
-