Interface AccessoryWithCurrentTilting
-
public interface AccessoryWithCurrentTiltingAccessory with current tilting characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Integer>getCurrentTiltAngle()Retrieves the current tilt anglevoidsubscribeCurrentTiltAngle(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the current tilt angle.voidunsubscribeCurrentTiltAngle()Unsubscribes from changes in the current tilt angle
-
-
-
Method Detail
-
getCurrentTiltAngle
CompletableFuture<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
-
-