Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
iOSDevice.BatteryLevel
The battery charge level for the device.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| iOSDevice | 7.2 | No | No | No | No | Yes |
MBS( "iOSDevice.BatteryLevel" ) More
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.
Examples
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.
Links
MBS Xojo Plugins