Interface AccessoryWithCurrentVerticalTilting
-
public interface AccessoryWithCurrentVerticalTilting
Accessory with current vertical tilting characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Integer>
getCurrentVerticalTiltAngle()
Retrieves the current vertical tilt anglevoid
subscribeCurrentVerticalTiltAngle(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the current vertical tilt angle.void
unsubscribeCurrentVerticalTiltAngle()
Unsubscribes from changes in the current vertical tilt angle
-
-
-
Method Detail
-
getCurrentVerticalTiltAngle
java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentVerticalTiltAngle()
Retrieves the current vertical tilt angle- Returns:
- a future that will contain the position as a value between -90 and 90
-
subscribeCurrentVerticalTiltAngle
void subscribeCurrentVerticalTiltAngle(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the current vertical tilt angle.- Parameters:
callback
- the function to call when the state changes.
-
unsubscribeCurrentVerticalTiltAngle
void unsubscribeCurrentVerticalTiltAngle()
Unsubscribes from changes in the current vertical tilt angle
-
-