The Battery API provides 2 APIs:
The battery level API returns current battery level in 0~100 percentage
The charging state API can return if the battery is in charging state.
LBattery class interface. You can use this library to get battery information such as charging status and battery power