diff --git a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts index 6b413abe7591f6592dee6fe06e114cad0941d70c..1350545b3a06980b2bc169a73243cece6b18c2a9 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts +++ b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts @@ -69,8 +69,7 @@ interface Uni { /** * 获取电池电量信息 - * @description 获取电池电量信息 - * @param {GetBatteryInfoOptions} options + * * @example * ```typescript * uni.getBatteryInfo({ @@ -92,7 +91,12 @@ interface Uni { * "osVer": "12.0", * "uniVer": "3.6.11", * "unixVer": "4.11" - * } + * }, + * "harmony": { + * "osVer": "x", + * "uniVer": "x", + * "unixVer": "x" + * } * }, * "web": { * "uniVer": "3.6.11", @@ -105,7 +109,7 @@ interface Uni { getBatteryInfo (options : GetBatteryInfoOptions) : void, /** * 同步获取电池电量信息 - * @description 获取电池电量信息 + * * @example * ```typescript * uni.getBatteryInfo() @@ -123,7 +127,12 @@ interface Uni { * "osVer": "12.0", * "uniVer": "3.6.11", * "unixVer": "4.11" - * } + * }, + * "harmony": { + * "osVer": "x", + * "uniVer": "x", + * "unixVer": "x" + * } * }, * "web": { * "uniVer": "3.6.11", diff --git a/uni_modules/uni-usercapturescreen/utssdk/interface.uts b/uni_modules/uni-usercapturescreen/utssdk/interface.uts index 660ba251923808031b0eea043efa8a33fe862ad5..90b89cf58ed2e5991399b5d75f89eb03447e551e 100644 --- a/uni_modules/uni-usercapturescreen/utssdk/interface.uts +++ b/uni_modules/uni-usercapturescreen/utssdk/interface.uts @@ -63,11 +63,11 @@ export type SetUserCaptureScreenOptions = { */ // complete : SetUserCaptureScreenSuccessCallback | SetUserCaptureScreenFailCallback | null complete ?: SetUserCaptureScreenCompleteCallback -} - +} + /** * 错误码 - * - 12001 "setUserCaptureScreen:system not support" + * - 12001 "setUserCaptureScreen:system not support" * - 12010 "setUserCaptureScreen:system internal error" */ export type SetUserCaptureScreenErrorCode = 12001 | 12010; @@ -80,76 +80,91 @@ export interface SetUserCaptureScreenFail extends IUniError { export type SetUserCaptureScreen = (options : SetUserCaptureScreenOptions) => void -export interface Uni { - /** - * 开启截屏监听 - * - * @param {UserCaptureScreenCallback} callback - * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen - * @uniPlatform { - * "app": { - * "android": { - * "osVer": "4.4.4", - * "uniVer": "3.7.7", - * "unixVer": "3.9.0" - * }, - * "ios": { - * "osVer": "12.0", - * "uniVer": "3.7.7", - * "unixVer": "4.11" - * } - * } - * } - * @uniVersion 3.7.7 +export interface Uni { + /** + * 开启截屏监听 + * + * @param {UserCaptureScreenCallback} callback + * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen + * @uniPlatform { + * "app": { + * "android": { + * "osVer": "4.4.4", + * "uniVer": "3.7.7", + * "unixVer": "3.9.0" + * }, + * "ios": { + * "osVer": "12.0", + * "uniVer": "3.7.7", + * "unixVer": "4.11" + * }, + * "harmony": { + * "osVer": "x", + * "uniVer": "x", + * "unixVer": "x" + * } + * } + * } + * @uniVersion 3.7.7 * @uniVueVersion 2,3 //支持的vue版本 - * @autotest { expectCallback: true } + * @autotest { expectCallback: true } */ - onUserCaptureScreen(callback : UserCaptureScreenCallback | null) : void, - /** - * 关闭截屏监听 - * - * @param {UserCaptureScreenCallback} callback - * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen - * @uniPlatform { - * "app": { - * "android": { - * "osVer": "4.4.4", - * "uniVer": "3.7.7", - * "unixVer": "3.9.0" - * }, - * "ios": { - * "osVer": "12.0", - * "uniVer": "3.7.7", - * "unixVer": "4.11" - * } - * } - * } - * @uniVersion 3.7.7 + onUserCaptureScreen(callback : UserCaptureScreenCallback | null) : void, + /** + * 关闭截屏监听 + * + * @param {UserCaptureScreenCallback} callback + * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen + * @uniPlatform { + * "app": { + * "android": { + * "osVer": "4.4.4", + * "uniVer": "3.7.7", + * "unixVer": "3.9.0" + * }, + * "ios": { + * "osVer": "12.0", + * "uniVer": "3.7.7", + * "unixVer": "4.11" + * }, + * "harmony": { + * "osVer": "x", + * "uniVer": "x", + * "unixVer": "x" + * } + * } + * } + * @uniVersion 3.7.7 * @uniVueVersion 2,3 //支持的vue版本 - * @autotest { expectCallback: true } + * @autotest { expectCallback: true } */ - offUserCaptureScreen(callback : UserCaptureScreenCallback | null) : void, - /** - * 设置防截屏 - * - * @param {SetUserCaptureScreenOptions} options - * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#setusercapturescreen - * @uniPlatform { - * "app": { - * "android": { - * "osVer": "4.4.4", - * "uniVer": "3.7.7", - * "unixVer": "3.9.0" - * }, - * "ios": { - * "osVer": "13.0", - * "uniVer": "3.7.7", - * "unixVer": "4.11" - * } - * } - * } - * @uniVersion 3.7.7 - * @uniVueVersion 2,3 //支持的vue版本 + offUserCaptureScreen(callback : UserCaptureScreenCallback | null) : void, + /** + * 设置防截屏 + * + * @param {SetUserCaptureScreenOptions} options + * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#setusercapturescreen + * @uniPlatform { + * "app": { + * "android": { + * "osVer": "4.4.4", + * "uniVer": "3.7.7", + * "unixVer": "3.9.0" + * }, + * "ios": { + * "osVer": "13.0", + * "uniVer": "3.7.7", + * "unixVer": "4.11" + * }, + * "harmony": { + * "osVer": "x", + * "uniVer": "x", + * "unixVer": "x" + * } + * } + * } + * @uniVersion 3.7.7 + * @uniVueVersion 2,3 //支持的vue版本 */ setUserCaptureScreen(options : SetUserCaptureScreenOptions) : void -} +}