addOnBatteryCapacityListener

open fun addOnBatteryCapacityListener(listener: NavigationManager.OnBatteryCapacityListener)

Add a OnBatteryCapacityListener to NavigationManager to subscribe to battery capacity changes.

open fun addOnBatteryCapacityListener(listener: NavigationManager.OnBatteryCapacityListener, @Nullable executor: Executor)

Add a OnBatteryCapacityListener to NavigationManager to subscribe to battery capacity changes.

Parameters

executor

Executor which will execute listener's callbacks