Interface AccessoryWithTargetHorizontalTilting


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

      • getTargetHorizontalTiltAngle

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

        CompletableFuture<Void> setTargetHorizontalTiltAngle​(int angle)
                                                      throws 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:
        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