Interface AccessoryWithObstructionDetection


  • public interface AccessoryWithObstructionDetection
    Accessory with hold position
    • Method Detail

      • getObstructionDetected

        java.util.concurrent.CompletableFuture<java.lang.Boolean> getObstructionDetected()
        Retrieves an indication obstructed is detected
        Returns:
        a future that will contain a boolean indicating whether an obstruction is present
      • subscribeObstructionDetected

        void subscribeObstructionDetected​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the obstruction detected state
        Parameters:
        callback - the function to call when the state changes.
      • unsubscribeObstructionDetected

        void unsubscribeObstructionDetected()
        Unsubscribes from changes in the obstruction detected state