powerMonitor - powerMonitor.isOnBatteryPower()

概述

返回 boolean,表示系统当前是否使用电池供电。

基本信息

属性
模块 powerMonitor
类型 Method
鸿蒙支持 支持