Interface AccessoryWithPhysicalControlsLock
-
public interface AccessoryWithPhysicalControlsLock
Accessory with physical controls which can be locked, e.g. child lock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<LockPhysicalControlsEnum>
getLockControls()
OPTIONAL: Retrieves the lock controls.java.util.concurrent.CompletableFuture<java.lang.Void>
setLockControls(LockPhysicalControlsEnum lockControls)
Set the lock controls (DISABLED, ENABLED).void
subscribeLockControls(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the lock controls.void
unsubscribeLockControls()
Unsubscribes from changes in the lock controls.
-
-
-
Method Detail
-
getLockControls
java.util.concurrent.CompletableFuture<LockPhysicalControlsEnum> getLockControls()
OPTIONAL: Retrieves the lock controls.- Returns:
- a future that will contain the lock controls
-
setLockControls
java.util.concurrent.CompletableFuture<java.lang.Void> setLockControls(LockPhysicalControlsEnum lockControls)
Set the lock controls (DISABLED, ENABLED).- Parameters:
lockControls
- lock controls mode- Returns:
- a future that completes when the change is made
-
subscribeLockControls
void subscribeLockControls(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the lock controls.- Parameters:
callback
- the function to call when the lock controls changes.
-
unsubscribeLockControls
void unsubscribeLockControls()
Unsubscribes from changes in the lock controls.
-
-