getBatteryHealth

abstract fun getBatteryHealth(): OptionalInt

Retrieves the device's current battery state of health, as an integer percentage of full health.

Battery health may be unsupported depending on the drone model and/or firmware versions. Hence, clients of this API should call isAvailable method on the returned value to check whether it can be considered valid before use.

Return

current battery state of health

See also