batteryState.*

Type Library
Revision Release 2022.3683
Keywords battery, batteryState
Platforms Android, iOS, macOS, Windows

Overview

The Battery State plugin enables battery monitoring support.

Syntax

local batteryState = require( "plugin.batteryState" )

Functions

Events

Project Settings

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"
        },
    },      
}