Interface AccessoryWithAirPlayEnable

    • 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.