:battery: 余烬电池 电池状态API打包为服务 用法 将battery服务注入您的班级并访问其api: export default class ApplicationController extends Controller { @ service battery ; get isTooLow ( ) { return ! this . battery . isCharging && this . battery . level < 0.2 ; } get iconName ( ) { let level = this . battery .