add On Battery Capacity Listener
open fun addOnBatteryCapacityListener(listener: NavigationManager.OnBatteryCapacityListener)
Content copied to clipboard
Add a OnBatteryCapacityListener to NavigationManager to subscribe to battery capacity changes.
open fun addOnBatteryCapacityListener(listener: NavigationManager.OnBatteryCapacityListener, @Nullable executor: Executor)
Content copied to clipboard
Add a OnBatteryCapacityListener to NavigationManager to subscribe to battery capacity changes.
Parameters
executor
Executor which will execute listener's callbacks