Interface AccessoryWithRotationDirection
-
public interface AccessoryWithRotationDirectionaccessory with rotation direction characteristics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<RotationDirectionEnum>getRotationDirection()Retrieves the current rotation direction.java.util.concurrent.CompletableFuture<java.lang.Void>setRotationDirection(RotationDirectionEnum direction)Sets the rotation directionvoidsubscribeRotationDirection(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the rotation direction.voidunsubscribeRotationDirection()Unsubscribes from changes in the rotation direction.
-
-
-
Method Detail
-
getRotationDirection
java.util.concurrent.CompletableFuture<RotationDirectionEnum> getRotationDirection()
Retrieves the current rotation direction.- Returns:
- a future that will contain the direction
-
setRotationDirection
java.util.concurrent.CompletableFuture<java.lang.Void> setRotationDirection(RotationDirectionEnum direction) throws java.lang.Exception
Sets the rotation direction- Parameters:
direction- the direction to set- Returns:
- a future that completes when the change is made
- Throws:
java.lang.Exception- when the change cannot be made
-
subscribeRotationDirection
void subscribeRotationDirection(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the rotation direction.- Parameters:
callback- the function to call when the direction changes.
-
unsubscribeRotationDirection
void unsubscribeRotationDirection()
Unsubscribes from changes in the rotation direction.
-
-