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.