Interface AccessoryWithStatusLowBattery
-
public interface AccessoryWithStatusLowBatteryThis characteristic describes an accessoryʼs battery status.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<StatusLowBatteryEnum>getStatusLowBattery()A status of 1 indicates that the battery level of the accessory is low.voidsubscribeStatusLowBattery(HomekitCharacteristicChangeCallback callback)Subscribes to changes in status low battery.voidunsubscribeStatusLowBattery()Unsubscribes from changes
-
-
-
Method Detail
-
getStatusLowBattery
java.util.concurrent.CompletableFuture<StatusLowBatteryEnum> getStatusLowBattery()
A status of 1 indicates that the battery level of the accessory is low. Value should return to 0 when the battery charges to a level thats above the low threshold.- Returns:
- a future with the value
-
subscribeStatusLowBattery
void subscribeStatusLowBattery(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in status low battery.- Parameters:
callback- the function when the status low batter changes
-
unsubscribeStatusLowBattery
void unsubscribeStatusLowBattery()
Unsubscribes from changes
-
-