Battery API All In One

https://caniuse.com/?search=Battery

navigator.getBattery()

/*
Promise {<pending>}__proto__: Promise[[PromiseState]]: "fulfilled"[[PromiseResult]]: BatteryManagercharging: truechargingTime: 0dischargingTime: Infinitylevel: 1onchargingchange: nullonchargingtimechange: nullondischargingtimechange: nullonlevelchange: null__proto__: BatteryManager */

W3C

Battery Status API

W3C Candidate Recommendation 07 July 2016

https://www.w3.org/TR/battery-status/

Battery Status API

W3C Editor's Draft 25 September 2019

https://w3c.github.io/battery/

Battery Status API

https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API



https://developer.mozilla.org/en-US/docs/Web/API/Navigator/battery



https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager



https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery



https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/level

refs

WakeLock

https://developer.mozilla.org/en-US/docs/Web/API/WakeLock



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. [SQL Server] 特殊字符、上标、下标处理
  2. ORACLE 常见错误
  3. Beat版本分工
  4. win7Java开发环境配置
  5. Laravel 部署安装到虚拟主机的方法(折腾了一周,终于成功部署,原来是虚拟机不加载.env,谢谢莫回首http://lxl520.com/index.php/archives/88/!)
  6. 使用go tool pprof分析内存泄漏、CPU消耗
  7. sql 无法识别的配置节 system.serviceModel
  8. Coursera《machine learning》--(6)逻辑回归
  9. 前端笔试题目小结--获取输入参数用户名;查询URL字符串参数
  10. MySQL函数笔记
  11. v9更新栏目缓存提示PHP has encountered a Stack overflow解决方法
  12. c#抽取pdf文档标题(1)
  13. android 系统dialog的应用
  14. Java代码的编译与反编译那些事儿
  15. 20175202 《Java程序设计》第八周学习总结
  16. Game Engine Architecture 11
  17. java操作elasticsearch实现聚合查询
  18. MySQL的SQL语句优化-group by语句的优化
  19. docker 学习笔记(1)--常用命令
  20. ndk编译android的lame库

热门文章

  1. ROS教程(二):创建工作空间(图文)
  2. 转 8 jmeter之集合点
  3. day03 函数基本语法及特性 2. 参数与局部变量 3. 返回值 嵌套函数 4.递归 5.匿名函数 6.函数式编程介绍 7.高阶函数 8.内置函数
  4. 分布式事务 Seata Saga 模式首秀以及三种模式详解 | Meetup#3 回顾
  5. Certbot CA 证书 https
  6. git commit前检测husky与pre-commit 提交钩子
  7. python3 安装 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz RHEL 8 install Python 3 or Python 2 using yum 编译安装 python3.7.4 . OpenSSL 1.0.2 or 1.1. Consequently, OpenSSL 0.9.8 and 1.0
  8. Django(简介)
  9. 使用V8和node轻松profile分析nodejs应用程序
  10. 微信支付V3 SDK Payment Spring Boot 1.0.6 发布,实现留守红包,助力抗疫