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

io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity 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 current relative humidity. */
public interface AccessoryWithCurrentRelativeHumidity {

  /**
   * Retrieves the current relative humidity.
   *
   * @return a future that will contain the current relative humidity.
   */
  CompletableFuture getCurrentRelativeHumidity();

  /**
   * Subscribes to changes in current relative humidity.
   *
   * @param callback the function to call when the current relative humidity changes.
   */
  void subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback callback);

  /** Unsubscribes from changes in the current relative humidity. */
  void unsubscribeCurrentRelativeHumidity();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy