Skip to main content
Use this API to get the current battery level and charging status of the device.

Parameters

Success Callback Parameters

Code Example

Basic Usage

Display Battery Status

Low Battery Warning

Power-Aware Features

Consider reducing resource-intensive operations when battery is low to provide a better user experience and help conserve battery life.

my.getSystemInfo

Get system information

my.getNetworkType

Get network type