Interface AccessoryWithPM25Density
-
public interface AccessoryWithPM25Density
Accessory with PM25 Density characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default double
getMaxPM25Density()
return the max value for PM25 density.default double
getMinPM25Density()
return the min value for PM25 density.default double
getMinStepPM25Density()
return the min step value for PM25 density.java.util.concurrent.CompletableFuture<java.lang.Double>
getPM25Density()
Retrieves the PM25 density.void
subscribePM25Density(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in PM25 density.void
unsubscribePM25Density()
Unsubscribes from changes
-
-
-
Method Detail
-
getPM25Density
java.util.concurrent.CompletableFuture<java.lang.Double> getPM25Density()
Retrieves the PM25 density.- Returns:
- a future with the PM25 density
-
getMinPM25Density
default double getMinPM25Density()
return the min value for PM25 density. overwrite if you want to change the default value.- Returns:
- min PM25 density
-
getMaxPM25Density
default double getMaxPM25Density()
return the max value for PM25 density. overwrite if you want to change the default value.- Returns:
- max PM25 density
-
getMinStepPM25Density
default double getMinStepPM25Density()
return the min step value for PM25 density. overwrite if you want to change the default value.- Returns:
- min step PM25 density
-
subscribePM25Density
void subscribePM25Density(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in PM25 density.- Parameters:
callback
- the function when PM25 density changes
-
unsubscribePM25Density
void unsubscribePM25Density()
Unsubscribes from changes
-
-