Interface AccessoryWithCurrentRelativeHumidity
-
public interface AccessoryWithCurrentRelativeHumidityaccessory with current relative humidity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Double>getCurrentRelativeHumidity()Retrieves the current relative humidity.voidsubscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback callback)Subscribes to changes in current relative humidity.voidunsubscribeCurrentRelativeHumidity()Unsubscribes from changes in the current relative humidity.
-
-
-
Method Detail
-
getCurrentRelativeHumidity
java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentRelativeHumidity()
Retrieves the current relative humidity.- Returns:
- a future that will contain the current relative humidity.
-
subscribeCurrentRelativeHumidity
void subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in current relative humidity.- Parameters:
callback- the function to call when the current relative humidity changes.
-
unsubscribeCurrentRelativeHumidity
void unsubscribeCurrentRelativeHumidity()
Unsubscribes from changes in the current relative humidity.
-
-