getLevel


Purpose

Provides access to the current battery level.

Signature

getLevel ( )

Returns

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

  • Resolve - returns current battery level (0-100 percent) .

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

Related topics

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