Interface AccessoryWithClosedCaptions

    • Method Detail

      • getClosedCaptions

        java.util.concurrent.CompletableFuture<ClosedCaptionsEnum> getClosedCaptions()
        Retrieves the closed captions state (see ClosedCaptionsEnum for supported values).
        Returns:
        a future that will contain the closed captions
      • setClosedCaptions

        java.util.concurrent.CompletableFuture<java.lang.Void> setClosedCaptions​(ClosedCaptionsEnum closedCaptions)
        Set the closed captions state (see ClosedCaptionsEnum for supported values).
        Parameters:
        closedCaptions - closed captions
        Returns:
        a future that completes when the change is made
      • subscribeClosedCaptions

        void subscribeClosedCaptions​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the closed captions.
        Parameters:
        callback - the function to call when the closed captions changes.
      • unsubscribeClosedCaptions

        void unsubscribeClosedCaptions()
        Unsubscribes from changes in the closed captions.