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 © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...