Interface AccessoryWithAirPlayEnable

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