Interface AccessoryWithSwingMode


  • public interface AccessoryWithSwingMode
    Accessory with Swing Mode characteristics.
    • Method Detail

      • getSwingMode

        java.util.concurrent.CompletableFuture<SwingModeEnum> getSwingMode()
        Retrieves the swing mode.
        Returns:
        a future that will contain the swing mode
      • setSwingMode

        java.util.concurrent.CompletableFuture<java.lang.Void> setSwingMode​(SwingModeEnum swingMode)
        Set the swing mode (DISABLED, ENABLED).
        Parameters:
        swingMode - swing mode
        Returns:
        a future that completes when the change is made
      • subscribeSwingMode

        void subscribeSwingMode​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the swing mode.
        Parameters:
        callback - the function to call when the swing mode changes.
      • unsubscribeSwingMode

        void unsubscribeSwingMode()
        Unsubscribes from changes in the swing mode.