iOSDevice.SetBatteryMonitoringEnabled

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: