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