Battery Status API
E856218
The Battery Status API is a web technology that allows websites to access information about a device’s battery level and charging status to optimize user experience and power usage.
Statements (48)
| Predicate | Object |
|---|---|
| instanceOf |
Web API
ⓘ
browser feature ⓘ |
| accessControlledBy | browser implementation ⓘ |
| accessedVia | navigator.getBattery() ⓘ |
| affectedBy |
browser privacy policies
ⓘ
regulatory concerns about tracking ⓘ |
| alsoKnownAs | Battery API NERFINISHED ⓘ |
| dataType |
boolean charging flag
ⓘ
numeric battery level between 0.0 and 1.0 ⓘ time in seconds for chargingTime ⓘ time in seconds for dischargingTime ⓘ |
| definedIn | W3C Battery Status API specification NERFINISHED ⓘ |
| designGoal |
low-latency access to battery information
ⓘ
minimal power overhead ⓘ |
| documentation | MDN Web Docs: Battery Status API NERFINISHED ⓘ |
| event |
chargingchange
ⓘ
chargingtimechange ⓘ dischargingtimechange ⓘ levelchange ⓘ |
| exposesProperty |
battery level
ⓘ
charging status ⓘ charging time ⓘ discharging time ⓘ |
| introduced | early 2010s ⓘ |
| partOf | client-side web platform ⓘ |
| primaryPurpose | provide information about device battery status to web pages ⓘ |
| property |
BatteryManager.charging
ⓘ
BatteryManager.chargingTime ⓘ BatteryManager.dischargingTime ⓘ BatteryManager.level ⓘ |
| raisesConcern |
fingerprinting
ⓘ
privacy ⓘ |
| relatedTo |
Navigator interface
ⓘ
Web privacy specifications ⓘ |
| returns | BatteryManager object ⓘ |
| securityConsideration |
can be used to infer user behavior patterns
ⓘ
can contribute to device fingerprinting ⓘ |
| standardizedBy | W3C NERFINISHED ⓘ |
| status | deprecated in several browsers ⓘ |
| supportStatus |
removed from Chrome
ⓘ
removed from Edge ⓘ removed from Firefox ⓘ still available in some browsers or environments ⓘ |
| typicalUsage |
media applications adapting quality on low battery
ⓘ
progressive web apps power management ⓘ |
| usedFor |
adapting application behavior based on battery level
ⓘ
optimizing power usage in web applications ⓘ reducing background activity on low battery ⓘ |
Referenced by (2)
Full triples — surface form annotated when it differs from this entity's canonical label.