Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

iOSDevice.BatteryLevel

The battery charge level for the device.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
iOSDevice 7.2 No No No No Yes

MBS( "iOSDevice.BatteryLevel" )

Parameters

none

Result

Returns value or error.

Description

The battery charge level for the device.
Battery level ranges from 0.0 (fully discharged) to 1.0 (100% charged). Before accessing this property, ensure that battery monitoring is enabled.
If battery monitoring is not enabled, battery state is Unknown and the value of this property is –1.0.

See also


iOSApp.SetWillEnterForegroundScript   -   iOSDevice.BatteryState

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins