isPowerConnected


Purpose

Checks whether the power source is connected.

Signature

isPowerConnected ( )

Returns

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

  • Resolve - returns the power connection state (boolean).

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

Related topics

Battery
Legal notice | Copyright © 2018 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...