Interface AccessoryWithCurrentRelativeHumidity
-
public interface AccessoryWithCurrentRelativeHumidity
accessory 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.void
subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in current relative humidity.void
unsubscribeCurrentRelativeHumidity()
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.
-
-