Interface AccessoryWithPhysicalControlsLock


  • public interface AccessoryWithPhysicalControlsLock
    Accessory with physical controls which can be locked, e.g. child lock
    • Method Detail

      • setLockControls

        CompletableFuture<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.