Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


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" )   More




Returns value or error.


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.


Show battery level:

Show Custom Dialog [ "Battery Level" ; MBS( "iOSDevice.BatteryLevel" ) ]

See also

Created 18th March 2017, last changed 25th November 2017

iOSApp.SetWillResignActiveScript   -   iOSDevice.BatteryState

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins