Interface AccessoryWithTargetVerticalTilting
-
public interface AccessoryWithTargetVerticalTiltingAccessory with target vertical tilting characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Integer>getTargetVerticalTiltAngle()Retrieves the target vertical tilt anglejava.util.concurrent.CompletableFuture<java.lang.Void>setTargetVerticalTiltAngle(int angle)Sets the target positionvoidsubscribeTargetVerticalTiltAngle(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the target vertical tilt angle.voidunsubscribeTargetVerticalTiltAngle()Unsubscribes from changes in the target vertical tilt angle
-
-
-
Method Detail
-
getTargetVerticalTiltAngle
java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetVerticalTiltAngle()
Retrieves the target vertical tilt angle- Returns:
- a future that will contain the target position as a value between -90 and 90
-
setTargetVerticalTiltAngle
java.util.concurrent.CompletableFuture<java.lang.Void> setTargetVerticalTiltAngle(int angle) throws java.lang.ExceptionSets 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
-
subscribeTargetVerticalTiltAngle
void subscribeTargetVerticalTiltAngle(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the target vertical tilt angle.- Parameters:
callback- the function to call when the state changes.
-
unsubscribeTargetVerticalTiltAngle
void unsubscribeTargetVerticalTiltAngle()
Unsubscribes from changes in the target vertical tilt angle
-
-