You are here

W3C Battery Status REST API

The Battery Status API, documented by W3C, is a browser-based API that enables web developers to discover the battery life of a hosting device. This enables web application features to be dynamically catered to a device's battery status, improving power-efficiency and user experience. The API dependences include EcmaScript and WebIDL version 2. The Battery Status API was historically packaged within the W3C System Information API but was excluded to promote additional efficiency and easier implementation. Documentation for the API is in the form of a brief written by W3C and representatives from Intel and Google, including code samples and additional reference material.