Type Library Revision Release 2025.3721 Keywords battery, batteryState Platforms Android, iOS, macOS, Windows
The Battery State plugin enables battery monitoring support.
local batteryState = require( "plugin.batteryState" )
To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.
settings =
{
plugins =
{
["plugin.batteryState"] =
{
publisherId = "com.coronalabs"
},
},
}