core
    正在准备搜索索引...

    接口 YmxDeviceBattery

    电量

    interface YmxDeviceBattery {
        getBatteryInfo(): Promise<GetBatteryInfoResult>;
    }

    层级 (查看层级一览)

    索引

    方法

    • 获取设备电池信息

      返回 Promise<GetBatteryInfoResult>

      ymx.getBatteryInfo()
      .then(res => {
      alert(JSON.stringify(res));
      });