Interface AccessoryWithCurrentTilting
-
public interface AccessoryWithCurrentTilting
Accessory with current tilting characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Integer>
getCurrentTiltAngle()
Retrieves the current tilt anglevoid
subscribeCurrentTiltAngle(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the current tilt angle.void
unsubscribeCurrentTiltAngle()
Unsubscribes from changes in the current tilt angle
-
-
-
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
-
-