Interface AccessoryWithAirPlayEnable
-
public interface AccessoryWithAirPlayEnableAccessory with AirPlay enable characteristicAirPlayEnableCharacteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Integer>getAirPlayEnable()Retrieves the AirPlay enable stateCompletableFuture<Void>setAirPlayEnable(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
CompletableFuture<Integer> getAirPlayEnable()
Retrieves the AirPlay enable state- Returns:
- a future that will contain the AirPlay enable state.
-
setAirPlayEnable
CompletableFuture<Void> setAirPlayEnable(Integer state) throws Exception
Sets the AirPlay enable state- Parameters:
state- AirPlay enable state- Returns:
- a future that completes when the AirPlay enable is changed
- Throws:
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.
-
-