Interface AccessoryWithActive

    • Method Detail

      • setActive

        CompletableFuture<Void> setActive​(ActiveEnum active)
        Set the active state (see ActiveEnum for supported values).
        Parameters:
        active - active state
        Returns:
        a future that completes when the change is made
      • subscribeActive

        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the active state.
        Parameters:
        callback - the function to call when the active state changes.
      • unsubscribeActive

        void unsubscribeActive()
        Unsubscribes from changes in the active state.