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.SetBatteryMonitoringEnabled
Changes battery monitoring state.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| iOSDevice | 7.2 | No | No | No | No | Yes |
MBS( "iOSDevice.SetBatteryMonitoringEnabled"; State ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| State | The new state of monitoring. Pass 1 to enable or 0 to disable. |
1 |
Result
Returns OK or error.
Description
Changes battery monitoring state.Enable battery monitoring if your app needs to be notified of changes to the battery state, or if you want to check the battery charge level.
The default value of this property is 0, which:
- Disables the posting of battery-related notifications
- Disables the ability to read battery charge level and battery state
Examples
Enable battery monitoring:
MBS( "iOSDevice.SetBatteryMonitoringEnabled"; 1 )
See also
Created 18th March 2017, last changed 25th November 2017
iOSDevice.OrientationIsPortrait - iOSDevice.SystemName
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins