Interface AccessoryWithObstructionDetection
-
public interface AccessoryWithObstructionDetection
Accessory with hold position
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>
getObstructionDetected()
Retrieves an indication obstructed is detectedvoid
subscribeObstructionDetected(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the obstruction detected statevoid
unsubscribeObstructionDetected()
Unsubscribes from changes in the obstruction detected state
-
-
-
Method Detail
-
getObstructionDetected
java.util.concurrent.CompletableFuture<java.lang.Boolean> getObstructionDetected()
Retrieves an indication obstructed is detected- Returns:
- a future that will contain a boolean indicating whether an obstruction is present
-
subscribeObstructionDetected
void subscribeObstructionDetected(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the obstruction detected state- Parameters:
callback
- the function to call when the state changes.
-
unsubscribeObstructionDetected
void unsubscribeObstructionDetected()
Unsubscribes from changes in the obstruction detected state
-
-