Interface AccessoryWithTargetHorizontalTilting


  • public interface AccessoryWithTargetHorizontalTilting
    Accessory with target horizontal tilting characteristic.
    Author:
    Andy Lintner
    • Method Detail

      • getTargetHorizontalTiltAngle

        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetHorizontalTiltAngle()
        Retrieves the target horizontal tilt angle
        Returns:
        a future that will contain the target position as a value between -90 and 90
      • setTargetHorizontalTiltAngle

        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetHorizontalTiltAngle​(int angle)
                                                                                     throws java.lang.Exception
        Sets the target position
        Parameters:
        angle - the target angle to set, as a value between -90 and 90
        Returns:
        a future that completes when the change is made
        Throws:
        java.lang.Exception - when the change cannot be made
      • subscribeTargetHorizontalTiltAngle

        void subscribeTargetHorizontalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the target horizontal tilt angle.
        Parameters:
        callback - the function to call when the state changes.
      • unsubscribeTargetHorizontalTiltAngle

        void unsubscribeTargetHorizontalTiltAngle()
        Unsubscribes from changes in the target horizontal tilt angle