startPowerConnectionMonitoring


Purpose

Starts power connection state monitoring. Initiates delivery of onPowerConnected and onPowerDisconnected observable events.

Signature

startPowerConnectionMonitoring ( )

Returns

This method returns a promise object that can be in one of the following states:

  • Resolve - confirms that monitoring has started successfully.

  • Reject - returns the InternalError error described in the Constants section of the Battery article.

Related topics

Battery
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Pega Mobile Client | Feedback
Advanced...