Interface AccessoryWithStatusLowBattery
-
public interface AccessoryWithStatusLowBattery
This 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.void
subscribeStatusLowBattery(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in status low battery.void
unsubscribeStatusLowBattery()
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
-
-