GetBatteryLevel

Availability

Flash Lite 1.1.

Description

Returns the current battery level. It is a numeric value that ranges from 0 to the maximum value returned by the GetMaxBatteryLevel variable.

Command

Parameters

Value returned

"GetBatteryLevel"

None.

-1: Not supported.

Other numeric values: The current battery level.

Example

The following example sets the battLevel variable to the current level of the battery:

battLevel = fscommand2("GetBatteryLevel");

See also

GetMaxBatteryLevel