Interface AccessoryWithCurrentTilting


  • public interface AccessoryWithCurrentTilting
    Accessory with current tilting characteristic.
    • Method Detail

      • getCurrentTiltAngle

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

        void subscribeCurrentTiltAngle​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the current tilt angle.
        Parameters:
        callback - the function to call when the state changes.
      • unsubscribeCurrentTiltAngle

        void unsubscribeCurrentTiltAngle()
        Unsubscribes from changes in the current tilt angle