isCharging

abstract fun isCharging(): Boolean?

Returns whether charging or not.

Return

true: charging, false: not charging, null: if not supported or unknown.