All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive Maven / Gradle / Ivy

There is a newer version: 2.0.7
Show newest version
package io.github.hapjava.accessories.optionalcharacteristic;

import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback;
import java.util.concurrent.CompletableFuture;

/** Accessory with status active. */
public interface AccessoryWithStatusActive {

  /**
   * Retrieves the status active. A value of true indicates that the accessory is active and is
   * functioning without any errors.
   *
   * @return a future with the value
   */
  CompletableFuture getStatusActive();

  /**
   * Subscribes to changes in status active.
   *
   * @param callback the function when the status active changes
   */
  void subscribeStatusActive(HomekitCharacteristicChangeCallback callback);

  /** Unsubscribes from changes */
  void unsubscribeStatusActive();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy