Interface AccessoryWithRotationDirection


  • public interface AccessoryWithRotationDirection
    accessory with rotation direction characteristics.
    • Method Detail

      • getRotationDirection

        java.util.concurrent.CompletableFuture<RotationDirectionEnum> getRotationDirection()
        Retrieves the current rotation direction.
        Returns:
        a future that will contain the direction
      • setRotationDirection

        java.util.concurrent.CompletableFuture<java.lang.Void> setRotationDirection​(RotationDirectionEnum direction)
                                                                             throws java.lang.Exception
        Sets the rotation direction
        Parameters:
        direction - the direction to set
        Returns:
        a future that completes when the change is made
        Throws:
        java.lang.Exception - when the change cannot be made
      • subscribeRotationDirection

        void subscribeRotationDirection​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the rotation direction.
        Parameters:
        callback - the function to call when the direction changes.
      • unsubscribeRotationDirection

        void unsubscribeRotationDirection()
        Unsubscribes from changes in the rotation direction.