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.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

iOSDevice.SetBatteryMonitoringEnabled

Changes battery monitoring state.

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

MBS( "iOSDevice.SetBatteryMonitoringEnabled"; State )

Parameters

Parameter Description Example value
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:

Examples

Enable battery monitoring:

MBS( "iOSDevice.SetBatteryMonitoringEnabled"; 1 )

See also


iOSDevice.OrientationIsPortrait   -   iOSDevice.SystemName

Feedback: Report problem or ask question.




Links
MBS FileMaker blog