Interface AccessoryWithTargetTilting


  • public interface AccessoryWithTargetTilting
    Accessory with target tilting characteristic.
    • Method Detail

      • getTargetTiltAngle

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

        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetTiltAngle​(int angle)
                                                                           throws java.lang.Exception
        Sets the target tilt angle
        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
      • subscribeTargetTiltAngle

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

        void unsubscribeTargetTiltAngle()
        Unsubscribes from changes in the target tilt angle