Interface AccessoryWithLockCurrentState
-
public interface AccessoryWithLockCurrentStateAccessory 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.voidsubscribeLockCurrentState(HomekitCharacteristicChangeCallback callback)Subscribes to changes in lock current state.voidunsubscribeLockCurrentState()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
-
-