diff --git a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts index 6e0d246da6cc807d535106daca1c948b224d6793..7d3bbf103e608a021aadc8418a44342f7371c316 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 }