
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..