From e7a1a5000c07bc0ba2135d657fe0745782dec0a3 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 14 Mar 2023 17:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E9=87=8F=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E4=BF=A1=E6=81=AF=E4=B8=AD=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-getbatteryinfo/utssdk/interface.uts | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts index 6e0d246..7d3bbf1 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts +++ b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts @@ -1,26 +1,12 @@ export type GetBatteryInfoSuccess = { - /** - * 错误码 - * 0:成功 - * 1001:getAppContext is null - * 1002:navigator.getBattery is unsupported - */ - errCode : number, - /** - * 调用API的名称 - */ - errSubject : string, - /** - * 错误的详细信息 - */ errMsg : string, /** - * 设备电量,范围1 - 100 - */ + * 设备电量,范围1 - 100 + */ level : number, /** - * 是否正在充电中 - */ + * 是否正在充电中 + */ isCharging : boolean } -- GitLab