Interface AccessoryWithPhysicalControlsLock
- 
 public interface AccessoryWithPhysicalControlsLockAccessory with physical controls which can be locked, e.g. child lock
- 
- 
Method SummaryAll 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).voidsubscribeLockControls(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the lock controls.voidunsubscribeLockControls()Unsubscribes from changes in the lock controls.
 
- 
- 
- 
Method Detail- 
getLockControlsjava.util.concurrent.CompletableFuture<LockPhysicalControlsEnum> getLockControls() OPTIONAL: Retrieves the lock controls.- Returns:
- a future that will contain the lock controls
 
 - 
setLockControlsjava.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
 
 - 
subscribeLockControlsvoid subscribeLockControls(HomekitCharacteristicChangeCallback callback) Subscribes to changes in the lock controls.- Parameters:
- callback- the function to call when the lock controls changes.
 
 - 
unsubscribeLockControlsvoid unsubscribeLockControls() Unsubscribes from changes in the lock controls.
 
- 
 
-