Interface AccessoryWithAirPlayEnable
-
public interface AccessoryWithAirPlayEnableAccessory with AirPlay enable characteristicAirPlayEnableCharacteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Integer>getAirPlayEnable()Retrieves the AirPlay enable statejava.util.concurrent.CompletableFuture<java.lang.Void>setAirPlayEnable(java.lang.Integer state)Sets the AirPlay enable statevoidsubscribeAirPlayEnable(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the AirPlay enable state.voidunsubscribeAirPlayEnable()Unsubscribes from changes in the AirPlay enable state.
-
-
-
Method Detail
-
getAirPlayEnable
java.util.concurrent.CompletableFuture<java.lang.Integer> getAirPlayEnable()
Retrieves the AirPlay enable state- Returns:
- a future that will contain the AirPlay enable state.
-
setAirPlayEnable
java.util.concurrent.CompletableFuture<java.lang.Void> setAirPlayEnable(java.lang.Integer state) throws java.lang.ExceptionSets the AirPlay enable state- Parameters:
state- AirPlay enable state- Returns:
- a future that completes when the AirPlay enable is changed
- Throws:
java.lang.Exception- when the AirPlay enable cannot be set
-
subscribeAirPlayEnable
void subscribeAirPlayEnable(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the AirPlay enable state.- Parameters:
callback- the function to call when the AirPlay enable state changes.
-
unsubscribeAirPlayEnable
void unsubscribeAirPlayEnable()
Unsubscribes from changes in the AirPlay enable state.
-
-