Interface AccessoryWithPM25Density
- 
 public interface AccessoryWithPM25DensityAccessory with PM25 Density characteristic.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default doublegetMaxPM25Density()return the max value for PM25 density.default doublegetMinPM25Density()return the min value for PM25 density.default doublegetMinStepPM25Density()return the min step value for PM25 density.java.util.concurrent.CompletableFuture<java.lang.Double>getPM25Density()Retrieves the PM25 density.voidsubscribePM25Density(HomekitCharacteristicChangeCallback callback)Subscribes to changes in PM25 density.voidunsubscribePM25Density()Unsubscribes from changes
 
- 
- 
- 
Method Detail- 
getPM25Densityjava.util.concurrent.CompletableFuture<java.lang.Double> getPM25Density() Retrieves the PM25 density.- Returns:
- a future with the PM25 density
 
 - 
getMinPM25Densitydefault double getMinPM25Density() return the min value for PM25 density. overwrite if you want to change the default value.- Returns:
- min PM25 density
 
 - 
getMaxPM25Densitydefault double getMaxPM25Density() return the max value for PM25 density. overwrite if you want to change the default value.- Returns:
- max PM25 density
 
 - 
getMinStepPM25Densitydefault double getMinStepPM25Density() return the min step value for PM25 density. overwrite if you want to change the default value.- Returns:
- min step PM25 density
 
 - 
subscribePM25Densityvoid subscribePM25Density(HomekitCharacteristicChangeCallback callback) Subscribes to changes in PM25 density.- Parameters:
- callback- the function when PM25 density changes
 
 - 
unsubscribePM25Densityvoid unsubscribePM25Density() Unsubscribes from changes
 
- 
 
-