diff --git a/docs/.vuepress/utils/uniappApiJson.json b/docs/.vuepress/utils/uniappApiJson.json index 823b5d5beb093b0fd3177aa8f090e9e1cd974a9f..2183cc2348beb02632127ec77935f700ffdcfb91 100644 --- a/docs/.vuepress/utils/uniappApiJson.json +++ b/docs/.vuepress/utils/uniappApiJson.json @@ -1 +1 @@ -{"getApp":{"name":"## function getApp\\(): AppInstance\\ @getapp","description":"`getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"getCurrentPages":{"name":"## () => UniPage[\\] @getcurrentpages","description":"`getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n\n#### UniPage 的方法 @unipage-values \n\n#### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n#### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n#### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n#### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n#### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n#### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n#### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n#### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| $component | - |\n@| $disableEscBack | - |\n###### UniDialogPage 的方法 @unidialogpage-values \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n \n \n \n","tutorial":""},"env":{"name":"## env","description":"环境变量","param":"### env 的属性值 @env-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| USER_DATA_PATH | - |\n| CACHE_PATH | - |\n| SANDBOX_PATH | - |\n| ANDROID_INTERNAL_SANDBOX_PATH | - |\n","compatibility":"","returnValue":"","tutorial":""},"$on":{"name":"## uni.$on(eventName, callback) @$on","description":"监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"$once":{"name":"## uni.$once(eventName, callback) @$once","description":"监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"$off":{"name":"## uni.$off(eventName, callback?) @$off","description":"移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。\n4.13+ 开始支持第二个参数为可选,如果仅提供事件名,则移除该事件的所有监听器。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n","returnValue":"","tutorial":""},"$emit":{"name":"## uni.$emit(eventName, args?) @$emit","description":"触发自定义事件,附加的参数会传递给事件监听器。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n","returnValue":"","tutorial":""},"base64ToArrayBuffer":{"name":"## uni.base64ToArrayBuffer(base64) @base64toarraybuffer","description":"将 Base64 字符串转成 ArrayBuffer 对象\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| base64 | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| ArrayBuffer |\n \n","tutorial":""},"arrayBufferToBase64":{"name":"## uni.arrayBufferToBase64(arrayBuffer) @arraybuffertobase64","description":"将 ArrayBuffer 对象转成 Base64 字符串\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| arrayBuffer | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n","tutorial":""},"addInterceptor":{"name":"## uni.addInterceptor(name, interceptor) @addinterceptor","description":"添加拦截器","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| interceptor | - | \n","returnValue":"","tutorial":""},"removeInterceptor":{"name":"## uni.removeInterceptor(name, interceptor?) @removeinterceptor","description":"删除拦截器","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| interceptor | - | \n","returnValue":"","tutorial":""},"getLaunchOptionsSync":{"name":"## uni.getLaunchOptionsSync() @getlaunchoptionssync","description":"获取首次启动时的参数。返回值与App.onLaunch的回调参数一致\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **OnLaunchOptions** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | HBuilderX 4.31 | \n","tutorial":""},"getEnterOptionsSync":{"name":"## uni.getEnterOptionsSync() @getenteroptionssync","description":"获取本次启动时的参数。返回值与App.onShow的回调参数一致\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **OnShowOptions** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | HBuilderX 4.31 | \n","tutorial":""},"exit":{"name":"## uni.exit(options?) @exit","description":"退出当前应用","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ExitSuccess 的属性值 @exitsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### IExitError 的属性值 @iexiterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getProviderSync":{"name":"## uni.getProviderSync(options) @getprovidersync","description":"getProvider的同步方法","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetProviderSyncSuccess** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| providerIds | HBuilderX 4.25 |\n@| providerObjects | HBuilderX 4.25 | \n","tutorial":""},"getProvider":{"name":"## uni.~~getProvider(options)~~ @getprovider","description":"获取服务供应商 **已废弃,4.25及以后版本请使用getProviderSync()方法代替**","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### IGetProviderFail 的属性值 @igetproviderfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getPerformance":{"name":"## uni.getPerformance() @getperformance","description":"返回一个Performance对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [Performance](#performance-values) |\n\n#### Performance 的方法 @performance-values \n\n#### createObserver(callback: PerformanceObserverCallback): PerformanceObserver @createobserver\n创建全局性能事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### PerformanceObserverEntryList 的方法 @performanceobserverentrylist-values \n\n##### getEntries(): PerformanceEntry[\\] @getentries\n该方法返回当前列表中的所有性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<**PerformanceEntry**\\> |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| entryType | - |\n@| name | - |\n@| duration | - |\n@| startTime | - |\n@| path | - |\n@| referrerPath | - |\n@| pageId | - |\n@| referrerPageId | - |\n@| navigationStart | - |\n@| navigationType | - |\n@| initDataRecvTime | - |\n@| viewLayerRenderEndTime | - | \n\n##### getEntriesByType(entryType: string): PerformanceEntry[\\] @getentriesbytype\n获取当前列表中所有类型为 \\[entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| entryType | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n##### getEntriesByName(name: string, entryType: string): PerformanceEntry[\\] @getentriesbyname\n获取当前列表中所有名称为 \\[name] 且类型为 [entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| entryType | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [PerformanceObserver](#performanceobserver-values) |\n\n###### PerformanceObserver 的方法 @performanceobserver-values \n\n###### observe(options: PerformanceObserverOptions): void @observe\n开始监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| buffered | - |\n@| entryTypes | - |\n@| type | - | \n\n\n###### disconnect(): void @disconnect\n停止监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n \n\n#### getEntries(): PerformanceEntry[\\] @getentries\n该方法返回当前缓冲区中的所有性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n#### getEntriesByType(entryType: string): PerformanceEntry[\\] @getentriesbytype\n获取当前缓冲区中所有类型为 \\[entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| entryType | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n#### getEntriesByName(name: string, entryType: string): PerformanceEntry[\\] @getentriesbyname\n获取当前缓冲区中所有名称为 \\[name] 且类型为 [entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| entryType | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n#### setBufferSize(size: number): void @setbuffersize\n设置缓冲区大小,默认缓冲 30 条性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| size | - | \n\n \n","tutorial":""},"navigateTo":{"name":"## uni.navigateTo(options) @navigateto","description":"保留当前页面,跳转到应用内的某个页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| animationType | HBuilderX 4.23 |\n@| animationDuration | HBuilderX 4.23 |\n@| events | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### NavigateToFail 的属性值 @navigatetofail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"reLaunch":{"name":"## uni.reLaunch(options) @relaunch","description":"关闭所有页面,打开到应用内的某个页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### ReLaunchFail 的属性值 @relaunchfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"navigateBack":{"name":"## uni.navigateBack(options?) @navigateback","description":"关闭当前页面,返回上一页面或多级页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| delta | HBuilderX 4.23 |\n@| success | - |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### NavigateBackFail 的属性值 @navigatebackfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"redirectTo":{"name":"## uni.redirectTo(options) @redirectto","description":"关闭当前页面,跳转到应用内的某个页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### RedirectToFail 的属性值 @redirecttofail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"switchTab":{"name":"## uni.switchTab(options) @switchtab","description":"跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### SwitchTabFail 的属性值 @switchtabfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setNavigationBarColor":{"name":"## uni.setNavigationBarColor(options) @setnavigationbarcolor","description":"设置导航条、状态栏颜色\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| frontColor | HBuilderX 4.23 |\n@| backgroundColor | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetNavigationBarColorFail 的属性值 @setnavigationbarcolorfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setNavigationBarTitle":{"name":"## uni.setNavigationBarTitle(options) @setnavigationbartitle","description":"动态设置当前页面的标题\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetNavigationBarTitleFail 的属性值 @setnavigationbartitlefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"showTabBar":{"name":"## uni.showTabBar(options?) @showtabbar","description":"显示 tabBar\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| animation | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"hideTabBar":{"name":"## uni.hideTabBar(options?) @hidetabbar","description":"隐藏 tabBar\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| animation | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"showTabBarRedDot":{"name":"## uni.showTabBarRedDot(options) @showtabbarreddot","description":"显示 tabBar 某一项的右上角的红点\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"hideTabBarRedDot":{"name":"## uni.hideTabBarRedDot(options) @hidetabbarreddot","description":"隐藏 tabBar 某一项的右上角的红点\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setTabBarBadge":{"name":"## uni.setTabBarBadge(options) @settabbarbadge","description":"为 tabBar 某一项的右上角添加文本\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| text | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"removeTabBarBadge":{"name":"## uni.removeTabBarBadge(options) @removetabbarbadge","description":"移除 tabBar 某一项右上角的文本\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setTabBarStyle":{"name":"## uni.setTabBarStyle(options) @settabbarstyle","description":"动态设置 tabBar 的整体样式\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| color | - |\n@| selectedColor | - |\n@| backgroundColor | - |\n@| backgroundImage | - |\n@| backgroundRepeat | - |\n@| borderColor | HBuilderX 4.23 |\n@| borderStyle | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setTabBarItem":{"name":"## uni.setTabBarItem(options) @settabbaritem","description":"动态设置 tabBar 某一项的内容\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| text | - |\n@| iconPath | - |\n@| selectedIconPath | - |\n@| pagePath | - |\n@| iconfont | - |\n@| visible | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"startPullDownRefresh":{"name":"## uni.startPullDownRefresh(options?) @startpulldownrefresh","description":"开始下拉刷新\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartPullDownRefreshFail 的属性值 @startpulldownrefreshfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"stopPullDownRefresh":{"name":"## uni.stopPullDownRefresh() @stoppulldownrefresh","description":"停止当前页面下拉刷新\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"pageScrollTo":{"name":"## uni.pageScrollTo(options) @pagescrollto","description":"将页面滚动到目标位置\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| scrollTop | - |\n@| selector | - |\n@| offsetTop | HBuilderX 4.23 |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### PageScrollToFail 的属性值 @pagescrolltofail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"openDialogPage":{"name":"## uni.openDialogPage(options) @opendialogpage","description":"打开模态弹窗页面","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### UniPage 的方法 @unipage-values \n\n#### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n#### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n#### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n#### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n#### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n#### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n#### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n#### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| $component | - |\n@| $disableEscBack | - |\n###### UniDialogPage 的方法 @unidialogpage-values \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n \n \n\n#### OpenDialogPageFail 的属性值 @opendialogpagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniDialogPage](#unidialogpage-values) | 否 |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| $component | - |\n@| $disableEscBack | - |\n#### UniDialogPage 的方法 @unidialogpage-values \n\n#### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n#### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n#### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n#### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n#### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n\n###### UniPage 的方法 @unipage-values \n\n###### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n###### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n \n \n\n#### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n \n \n","tutorial":""},"closeDialogPage":{"name":"## uni.closeDialogPage(options?) @closedialogpage","description":"关闭模态弹窗页面\r\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### CloseDialogPageFail 的属性值 @closedialogpagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| null |\n \n","tutorial":""},"onTabBarMidButtonTap":{"name":"## uni.onTabBarMidButtonTap(options) @ontabbarmidbuttontap","description":"监听中间按钮的点击事件","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"","tutorial":""},"getElementById":{"name":"## uni.getElementById(id) @getelementbyid","description":"返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n","tutorial":""},"createSelectorQuery":{"name":"## uni.createSelectorQuery() @createselectorquery","description":"返回一个SelectorQuery对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n\n#### SelectorQuery 的方法 @selectorquery-values \n\n#### in(component: any \\| null): SelectorQuery @in\n将选择器的选取范围更改为自定义组件component内\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| component | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n#### select(selector: string): NodesRef @select\n在当前页面下选择第一个匹配选择器selector的节点\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [NodesRef](#nodesref-values) |\n\n###### NodesRef 的方法 @nodesref-values \n\n###### boundingClientRect( callback: SelectorQueryNodeInfoCallback \\| null, ): SelectorQuery @boundingclientrect\n添加节点的布局位置的查询请求,相对于显示区域,以像素为单位\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### scrollOffset(callback: SelectorQueryNodeInfoCallback): SelectorQuery @scrolloffset\n添加节点的滚动位置查询请求,以像素为单位\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### fields( fields: NodeField, callback: SelectorQueryNodeInfoCallback \\| null, ): SelectorQuery @fields\n获取节点的相关信息,需要获取的字段在fields中指定\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| fields | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| dataset | - |\n@| rect | - |\n@| size | - |\n@| scrollOffset | - |\n@| properties | - |\n@| computedStyle | - |\n@| context | - |\n@| node | - |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### context(callback: SelectorQueryNodeInfoCallback): SelectorQuery @context\n添加节点的 Context 对象查询请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### node(callback: (result: any) => void): SelectorQuery @node\n获取 Node 节点实例。目前支持 Canvas 的获取。\n获取节点的相关信息,需要获取的字段在fields中指定\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n \n\n#### selectAll(selector: string): NodesRef @selectall\n在当前页面下选择匹配选择器selector的所有节点\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [NodesRef](#nodesref-values) |\n \n\n#### selectViewport(): NodesRef @selectviewport\n选择显示区域\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [NodesRef](#nodesref-values) |\n \n\n#### exec(callback: (result: Array\\) => void \\| null): NodesRef \\| null @exec\n执行所有的请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [NodesRef](#nodesref-values) | 否 |\n \n \n","tutorial":""},"createIntersectionObserver":{"name":"## uni.createIntersectionObserver(component, options) @createintersectionobserver","description":"创建并返回一个 IntersectionObserver 对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| component | - |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| thresholds | - |\n@| initialRatio | - |\n@| observeAll | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [IntersectionObserver](#intersectionobserver-values) |\n\n#### IntersectionObserver 的方法 @intersectionobserver-values \n\n#### relativeTo(selector: string, margins?: any): IntersectionObserver; @relativeto\n使用选择器指定一个节点,作为参照区域之一\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - |\n| margins | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [IntersectionObserver](#intersectionobserver-values) |\n \n\n#### relativeToViewport(margins?: any): IntersectionObserver; @relativetoviewport\n指定页面显示区域作为参照区域之一\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| margins | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [IntersectionObserver](#intersectionobserver-values) |\n \n\n#### observe(targetSelector: string, callback: ObserveCallback): void; @observe\n指定目标节点并开始监听相交状态变化情况\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| targetSelector | - |\n| callback | - | \n\n##### ObserveResult 的属性值 @observeresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| intersectionRatio | - |\n| intersectionRect | - |\n| boundingClientRect | - |\n| relativeRect | - |\n| time | - |\n\n\n#### disconnect(): void; @disconnect\n停止监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n \n","tutorial":""},"showActionSheet":{"name":"## uni.showActionSheet(options) @showactionsheet","description":"从底部向上弹出操作菜单","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| alertText | - |\n@| itemList | - |\n@| itemColor | - |\n@| popover | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ShowActionSheetSuccess 的属性值 @showactionsheetsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tapIndex | - |\n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"showModal":{"name":"## uni.showModal(options) @showmodal","description":"显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| content | - |\n@| showCancel | - |\n@| cancelText | - |\n@| cancelColor | - |\n@| confirmText | - |\n@| confirmColor | - |\n@| editable | - |\n@| placeholderText | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ShowModalSuccess 的属性值 @showmodalsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| confirm | - |\n| cancel | - |\n| content | - |\n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"showLoading":{"name":"## uni.showLoading(options) @showloading","description":"显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| mask | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideLoading":{"name":"## uni.hideLoading() @hideloading","description":"隐藏 loading 提示框。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"showToast":{"name":"## uni.showToast(options) @showtoast","description":"显示消息提示框","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| icon | - |\n@| image | - |\n@| mask | - |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideToast":{"name":"## uni.hideToast() @hidetoast","description":"隐藏消息提示框。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"loadFontFace":{"name":"## uni.loadFontFace(options) @loadfontface","description":"动态加载网络字体\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| global | - |\n@| family | - |\n@| source | - |\n@| desc | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### LoadFontFaceFail 的属性值 @loadfontfacefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"rpx2px":{"name":"## uni.rpx2px(number) @rpx2px","description":"将rpx单位值转换成px","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| number | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"setAppTheme":{"name":"## uni.setAppTheme(options) @setapptheme","description":"设置应用主题","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | x | \n\n#### SetAppThemeSuccessResult 的属性值 @setappthemesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| theme | - |\n\n#### IAppThemeFail 的属性值 @iappthemefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onOsThemeChange":{"name":"## uni.onOsThemeChange(callback) @onosthemechange","description":"开启监听系统主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"offOsThemeChange":{"name":"## uni.offOsThemeChange(id) @offosthemechange","description":"取消监听系统主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n","returnValue":"","tutorial":""},"onAppThemeChange":{"name":"## uni.onAppThemeChange(callback) @onappthemechange","description":"开启监听应用主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"offAppThemeChange":{"name":"## uni.offAppThemeChange(id) @offappthemechange","description":"取消监听应用主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n","returnValue":"","tutorial":""},"onThemeChange":{"name":"## uni.onThemeChange(callback) @onthemechange","description":"监听系统主题状态变化。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnThemeChangeCallbackResult 的属性值 @onthemechangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| theme | - |\n","returnValue":"","tutorial":""},"offThemeChange":{"name":"## uni.offThemeChange(callback) @offthemechange","description":"取消监听系统主题状态变化。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OffThemeChangeCallbackResult 的属性值 @offthemechangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| theme | - |\n","returnValue":"","tutorial":""},"getLocale":{"name":"## uni.getLocale() @getlocale","description":"获取当前设置的语言\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n","tutorial":""},"setLocale":{"name":"## uni.setLocale(locale) @setlocale","description":"设置当前语言\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| locale | - | \n","returnValue":"","tutorial":""},"onLocaleChange":{"name":"## uni.onLocaleChange(callback) @onlocalechange","description":"设置当前语言\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnLocaleChangeCallbackResult 的属性值 @onlocalechangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| locale | - |\n","returnValue":"","tutorial":""},"request":{"name":"## uni.request(param) @request","description":"发起网络请求。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| param | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| data | HBuilderX 4.23 |\n@| header | HBuilderX 4.23 |\n@| method | HBuilderX 4.23 |\n@| timeout | - |\n@| withCredentials | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### RequestSuccess\\ 的属性值 @requestsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n| statusCode | HBuilderX 4.23 |\n| header | HBuilderX 4.23 |\n| cookies | HBuilderX 4.23 |\n\n#### RequestFail 的属性值 @requestfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RequestTask](#requesttask-values) |\n\n#### RequestTask 的方法 @requesttask-values \n\n#### abort(): void @abort\n中断网络请求。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n \n","tutorial":""},"uploadFile":{"name":"## uni.uploadFile(options) @uploadfile","description":"将本地资源上传到开发者服务器。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| filePath | HBuilderX 4.23 |\n@| name | HBuilderX 4.23 |\n@| files | HBuilderX 4.23 |\n@| header | HBuilderX 4.23 |\n@| formData | HBuilderX 4.23 |\n@| timeout | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UploadFileSuccess 的属性值 @uploadfilesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n| statusCode | HBuilderX 4.23 |\n\n#### UploadFileFail 的属性值 @uploadfilefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [UploadTask](#uploadtask-values) |\n\n#### UploadTask 的方法 @uploadtask-values \n\n#### abort(): void, @abort\n中断上传任务。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### onProgressUpdate(callback: UploadFileProgressUpdateCallback): void, @onprogressupdate\n监听上传进度变化。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnProgressUpdateResult 的属性值 @onprogressupdateresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| progress | HBuilderX 4.23 |\n| totalBytesSent | HBuilderX 4.23 |\n| totalBytesExpectedToSend | HBuilderX 4.23 |\n\n \n","tutorial":""},"downloadFile":{"name":"## uni.downloadFile(options) @downloadfile","description":"下载文件资源到本地,客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| header | - |\n@| filePath | HBuilderX 4.23 |\n@| timeout | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### DownloadFileSuccess 的属性值 @downloadfilesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | HBuilderX 4.23 |\n| statusCode | HBuilderX 4.23 |\n\n#### DownloadFileFail 的属性值 @downloadfilefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [DownloadTask](#downloadtask-values) |\n\n#### DownloadTask 的方法 @downloadtask-values \n\n#### abort(): void, @abort\n中断下载任务\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### onProgressUpdate(callback: DownloadFileProgressUpdateCallback): void, @onprogressupdate\n监听下载进度变化。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnProgressDownloadResult 的属性值 @onprogressdownloadresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| progress | HBuilderX 4.23 |\n| totalBytesWritten | HBuilderX 4.23 |\n| totalBytesExpectedToWrite | HBuilderX 4.23 |\n\n \n","tutorial":""},"getNetworkType":{"name":"## uni.getNetworkType(options) @getnetworktype","description":"获取网络类型","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetNetworkTypeSuccess 的属性值 @getnetworktypesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| networkType | - |\n","returnValue":"","tutorial":""},"connectSocket":{"name":"## uni.connectSocket(options) @connectsocket","description":"创建一个 WebSocket 连接。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| header | HBuilderX 4.23 |\n@| protocols | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ConnectSocketSuccess 的属性值 @connectsocketsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### ConnectSocketFail 的属性值 @connectsocketfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SocketTask](#sockettask-values) |\n\n#### SocketTask 的方法 @sockettask-values \n\n#### send(options: SendSocketMessageOptions): void; @send\n通过 WebSocket 连接发送数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| data | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### SendSocketMessageFail 的属性值 @sendsocketmessagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### close(options: CloseSocketOptions): void; @close\n关闭 WebSocket 连接\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| code | HBuilderX 4.23 |\n@| reason | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### onOpen(callback: (result: OnSocketOpenCallbackResult) => void): void; @onopen\n监听 WebSocket 连接打开事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnSocketOpenCallbackResult 的属性值 @onsocketopencallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| header | HBuilderX 4.23 |\n\n\n#### onClose(callback: (result: any) => void): void; @onclose\n监听 WebSocket 连接关闭事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback: (result: GeneralCallbackResult) => void): void; @onerror\n监听 WebSocket 错误\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onMessage(callback: (result: OnSocketMessageCallbackResult) => void): void; @onmessage\n监听 WebSocket 接受到服务器的消息事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnSocketMessageCallbackResult 的属性值 @onsocketmessagecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n\n \n","tutorial":""},"onSocketOpen":{"name":"## uni.onSocketOpen(options) @onsocketopen","description":"监听WebSocket连接打开事件。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"","tutorial":""},"onSocketError":{"name":"## uni.onSocketError(callback) @onsocketerror","description":"监听WebSocket错误。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnSocketErrorCallbackResult 的属性值 @onsocketerrorcallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"","tutorial":""},"sendSocketMessage":{"name":"## uni.sendSocketMessage(options) @sendsocketmessage","description":"通过 WebSocket 连接发送数据,需要先 uni.connectSocket,并在 uni.onSocketOpen 回调之后才能发送。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| data | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SendSocketMessageFail 的属性值 @sendsocketmessagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onSocketMessage":{"name":"## uni.onSocketMessage(callback) @onsocketmessage","description":"监听WebSocket接受到服务器的消息事件。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnSocketMessageCallbackResult 的属性值 @onsocketmessagecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n","returnValue":"","tutorial":""},"closeSocket":{"name":"## uni.closeSocket(options) @closesocket","description":"关闭 WebSocket 连接。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| code | HBuilderX 4.23 |\n@| reason | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"onSocketClose":{"name":"## uni.onSocketClose(callback) @onsocketclose","description":"监听WebSocket关闭。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnSocketCloseCallbackResult 的属性值 @onsocketclosecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| code | HBuilderX 4.23 |\n| reason | HBuilderX 4.23 |\n","returnValue":"","tutorial":""},"onNetworkStatusChange":{"name":"## uni.onNetworkStatusChange(callback) @onnetworkstatuschange","description":"监听网络状态变化\r\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnNetworkStatusChangeCallbackResult 的属性值 @onnetworkstatuschangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isConnected | - |\n| networkType | - |\n","returnValue":"","tutorial":""},"offNetworkStatusChange":{"name":"## uni.offNetworkStatusChange(callback) @offnetworkstatuschange","description":"取消监听网络状态变化\r\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"getSystemInfo":{"name":"## uni.getSystemInfo(options) @getsysteminfo","description":"异步获取系统信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetSystemInfoResult 的属性值 @getsysteminforesult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| appId | HBuilderX 4.23 |\n| appLanguage | HBuilderX 4.23 |\n| appName | HBuilderX 4.23 |\n| appVersion | HBuilderX 4.23 |\n| appVersionCode | HBuilderX 4.23 |\n| appWgtVersion | HBuilderX 4.23 |\n| browserName | x |\n| browserVersion | x |\n| deviceId | HBuilderX 4.23 |\n| deviceBrand | HBuilderX 4.23 |\n| deviceModel | HBuilderX 4.23 |\n| deviceType | HBuilderX 4.23 |\n| devicePixelRatio | HBuilderX 4.23 |\n| deviceOrientation | HBuilderX 4.23 |\n| osName | HBuilderX 4.23 |\n| osVersion | HBuilderX 4.23 |\n| osLanguage | HBuilderX 4.23 |\n| osTheme | HBuilderX 4.23 |\n| screenWidth | HBuilderX 4.23 |\n| screenHeight | HBuilderX 4.23 |\n| statusBarHeight | HBuilderX 4.23 |\n| safeArea | HBuilderX 4.23 |\n| safeAreaInsets | HBuilderX 4.23 |\n| ua | x |\n| uniCompilerVersion | HBuilderX 4.23 |\n| uniPlatform | HBuilderX 4.23 |\n| uniRuntimeVersion | HBuilderX 4.23 |\n| uniCompilerVersionCode | HBuilderX 4.23 |\n| uniRuntimeVersionCode | HBuilderX 4.23 |\n| romName | HBuilderX 4.23 |\n| romVersion | HBuilderX 4.23 |\n| windowWidth | HBuilderX 4.23 |\n| windowHeight | HBuilderX 4.23 |\n| windowTop | HBuilderX 4.23 |\n| windowBottom | HBuilderX 4.23 |\n| appTheme | HBuilderX 4.23 |\n| version | x |\n| uniCompileVersionCode | x |\n| uniCompileVersion | x |\n| system | HBuilderX 4.23 |\n| platform | x |\n| pixelRatio | x |\n| model | x |\n| language | x |\n| brand | HBuilderX 4.23 |\n","returnValue":"","tutorial":""},"getSystemInfoSync":{"name":"## uni.getSystemInfoSync() @getsysteminfosync","description":"同步获取系统信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetSystemInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| appId | HBuilderX 4.23 |\n@| appLanguage | HBuilderX 4.23 |\n@| appName | HBuilderX 4.23 |\n@| appVersion | HBuilderX 4.23 |\n@| appVersionCode | HBuilderX 4.23 |\n@| appWgtVersion | HBuilderX 4.23 |\n@| browserName | x |\n@| browserVersion | x |\n@| deviceId | HBuilderX 4.23 |\n@| deviceBrand | HBuilderX 4.23 |\n@| deviceModel | HBuilderX 4.23 |\n@| deviceType | HBuilderX 4.23 |\n@| devicePixelRatio | HBuilderX 4.23 |\n@| deviceOrientation | HBuilderX 4.23 |\n@| osName | HBuilderX 4.23 |\n@| osVersion | HBuilderX 4.23 |\n@| osLanguage | HBuilderX 4.23 |\n@| osTheme | HBuilderX 4.23 |\n@| screenWidth | HBuilderX 4.23 |\n@| screenHeight | HBuilderX 4.23 |\n@| statusBarHeight | HBuilderX 4.23 |\n@| safeArea | HBuilderX 4.23 |\n@| safeAreaInsets | HBuilderX 4.23 |\n@| ua | x |\n@| uniCompilerVersion | HBuilderX 4.23 |\n@| uniPlatform | HBuilderX 4.23 |\n@| uniRuntimeVersion | HBuilderX 4.23 |\n@| uniCompilerVersionCode | HBuilderX 4.23 |\n@| uniRuntimeVersionCode | HBuilderX 4.23 |\n@| romName | HBuilderX 4.23 |\n@| romVersion | HBuilderX 4.23 |\n@| windowWidth | HBuilderX 4.23 |\n@| windowHeight | HBuilderX 4.23 |\n@| windowTop | HBuilderX 4.23 |\n@| windowBottom | HBuilderX 4.23 |\n@| appTheme | HBuilderX 4.23 |\n@| version | x |\n@| uniCompileVersionCode | x |\n@| uniCompileVersion | x |\n@| system | HBuilderX 4.23 |\n@| platform | x |\n@| pixelRatio | x |\n@| model | x |\n@| language | x |\n@| brand | HBuilderX 4.23 | \n","tutorial":""},"getDeviceInfo":{"name":"## uni.getDeviceInfo(options?) @getdeviceinfo","description":"获取设备信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filter | x | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetDeviceInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| deviceBrand | HBuilderX 4.23 |\n@| deviceId | HBuilderX 4.23 |\n@| deviceModel | HBuilderX 4.23 |\n@| deviceType | HBuilderX 4.23 |\n@| deviceOrientation | HBuilderX 4.23 |\n@| devicePixelRatio | HBuilderX 4.23 |\n@| system | HBuilderX 4.23 |\n@| platform | HBuilderX 4.23 |\n@| osName | HBuilderX 4.23 |\n@| osVersion | HBuilderX 4.23 |\n@| osLanguage | HBuilderX 4.23 |\n@| osTheme | HBuilderX 4.23 |\n@| romName | HBuilderX 4.23 |\n@| romVersion | HBuilderX 4.23 |\n@| model | x | \n","tutorial":""},"getWindowInfo":{"name":"## uni.getWindowInfo() @getwindowinfo","description":"同步获取窗口信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| **GetWindowInfoResult** | result |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| pixelRatio | HBuilderX 4.23 |\n@| screenWidth | HBuilderX 4.23 |\n@| screenHeight | HBuilderX 4.23 |\n@| windowWidth | HBuilderX 4.23 |\n@| windowHeight | HBuilderX 4.23 |\n@| statusBarHeight | HBuilderX 4.23 |\n@| windowTop | HBuilderX 4.23 |\n@| windowBottom | HBuilderX 4.23 |\n@| safeArea | HBuilderX 4.23 |\n@| safeAreaInsets | HBuilderX 4.23 |\n@| screenTop | HBuilderX 4.23 | \n","tutorial":""},"getAppBaseInfo":{"name":"## uni.getAppBaseInfo(options?) @getappbaseinfo","description":"获取app基本信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filter | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetAppBaseInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| appId | HBuilderX 4.23 |\n@| appName | HBuilderX 4.23 |\n@| appVersion | HBuilderX 4.23 |\n@| appVersionCode | HBuilderX 4.23 |\n@| appLanguage | HBuilderX 4.23 |\n@| language | x |\n@| appWgtVersion | HBuilderX 4.23 |\n@| hostLanguage | HBuilderX 4.23 |\n@| isUniAppX | HBuilderX 4.23 |\n@| uniCompilerVersion | HBuilderX 4.23 |\n@| uniPlatform | HBuilderX 4.23 |\n@| uniRuntimeVersionCode | HBuilderX 4.23 |\n@| packageName | HBuilderX 4.23 |\n@| appTheme | HBuilderX 4.23 |\n@| version | HBuilderX 4.23 | \n","tutorial":""},"getAppAuthorizeSetting":{"name":"## uni.getAppAuthorizeSetting() @getappauthorizesetting","description":"获取 APP 授权设置。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetAppAuthorizeSettingResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| albumAuthorized | - |\n@| bluetoothAuthorized | - |\n@| cameraAuthorized | - |\n@| locationAuthorized | - |\n@| locationAccuracy | - |\n@| locationReducedAccuracy | - |\n@| microphoneAuthorized | - |\n@| notificationAuthorized | - |\n@| notificationAlertAuthorized | - |\n@| notificationBadgeAuthorized | - |\n@| notificationSoundAuthorized | - |\n@| phoneCalendarAuthorized | x | \n","tutorial":""},"getSystemSetting":{"name":"## uni.getSystemSetting() @getsystemsetting","description":"获取系统设置","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetSystemSettingResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| bluetoothEnabled | HBuilderX 4.25 |\n@| bluetoothError | HBuilderX 4.25 |\n@| locationEnabled | HBuilderX 4.25 |\n@| wifiEnabled | HBuilderX 4.25 |\n@| wifiError | HBuilderX 4.25 |\n@| deviceOrientation | HBuilderX 4.25 | \n","tutorial":""},"installApk":{"name":"## uni.installApk(options) @installapk","description":"安装apk","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### InstallApkSuccess 的属性值 @installapksuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### InstallApkFail 的属性值 @installapkfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getBatteryInfo":{"name":"## uni.getBatteryInfo(options) @getbatteryinfo","description":"获取电池电量信息\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-getbatteryinfo](https://ext.dcloud.net.cn/plugin?name=uni-getbatteryinfo)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetBatteryInfoSuccess 的属性值 @getbatteryinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| level | - |\n| isCharging | - |\n","returnValue":"","tutorial":""},"getBatteryInfoSync":{"name":"## uni.getBatteryInfoSync() @getbatteryinfosync","description":"同步获取电池电量信息\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-getbatteryinfo](https://ext.dcloud.net.cn/plugin?name=uni-getbatteryinfo)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetBatteryInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| level | - |\n@| isCharging | - | \n","tutorial":""},"makePhoneCall":{"name":"## uni.makePhoneCall(options) @makephonecall","description":"拨打电话\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| phoneNumber | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"getClipboardData":{"name":"## uni.getClipboardData(options) @getclipboarddata","description":"获得系统剪贴板的内容\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetClipboardDataSuccess 的属性值 @getclipboarddatasuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n","returnValue":"","tutorial":""},"setClipboardData":{"name":"## uni.setClipboardData(options) @setclipboarddata","description":"设置系统剪贴板的内容\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| data | - |\n@| showToast | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"onCompassChange":{"name":"## uni.onCompassChange(callback) @oncompasschange","description":"监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnCompassChangeSuccess 的属性值 @oncompasschangesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | - |\n","returnValue":"","tutorial":""},"offCompassChange":{"name":"## uni.offCompassChange(callback) @offcompasschange","description":"取消监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"startCompass":{"name":"## uni.startCompass(options?) @startcompass","description":"开始监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ICompassError 的属性值 @icompasserror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"stopCompass":{"name":"## uni.stopCompass(options?) @stopcompass","description":"停止监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ICompassError 的属性值 @icompasserror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onAccelerometerChange":{"name":"## uni.onAccelerometerChange(callback) @onaccelerometerchange","description":"监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnAccelerometerChangeCallbackResult 的属性值 @onaccelerometerchangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - |\n| z | - |\n","returnValue":"","tutorial":""},"offAccelerometerChange":{"name":"## uni.offAccelerometerChange(callback) @offaccelerometerchange","description":"取消监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"startAccelerometer":{"name":"## uni.startAccelerometer(options) @startaccelerometer","description":"开始监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| interval | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"stopAccelerometer":{"name":"## uni.stopAccelerometer(options) @stopaccelerometer","description":"停止监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"startWifi":{"name":"## uni.startWifi(option) @startwifi","description":"初始化Wi-Fi模块\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"stopWifi":{"name":"## uni.stopWifi(option) @stopwifi","description":"关闭 Wi-Fi 模块\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"connectWifi":{"name":"## uni.connectWifi(option) @connectwifi","description":"","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| SSID | - |\n@| BSSID | - |\n@| password | - |\n@| maunal | - |\n@| partialInfo | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"getWifiList":{"name":"## uni.getWifiList(option) @getwifilist","description":"请求获取 Wi-Fi 列表。wifiList 数据会在 onGetWifiList 注册的回调中返回。\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onGetWifiList":{"name":"## uni.onGetWifiList(callback) @ongetwifilist","description":"监听获取到 Wi-Fi 列表数据事件。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"offGetWifiList":{"name":"## uni.offGetWifiList(callback) @offgetwifilist","description":"移除获取到 Wi-Fi 列表数据事件的监听函数。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"getConnectedWifi":{"name":"## uni.getConnectedWifi(option) @getconnectedwifi","description":"获取已连接的 Wi-Fi 信息\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| partialInfo | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onWifiConnected":{"name":"## uni.onWifiConnected(callback) @onwificonnected","description":"监听连接上 Wi-Fi 的事件\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onWifiConnectedWithPartialInfo":{"name":"## uni.onWifiConnectedWithPartialInfo(callback) @onwificonnectedwithpartialinfo","description":"监听连接上 Wi-Fi 的事件。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### UniWifiInfoWithPartialInfo 的属性值 @uniwifiinfowithpartialinfo-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| SSID | - |\n","returnValue":"","tutorial":""},"offWifiConnected":{"name":"## uni.offWifiConnected(callback?) @offwificonnected","description":"移除连接上 Wi-Fi 的事件的监听函数。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"setWifiList":{"name":"## uni.setWifiList(option) @setwifilist","description":"SetWifiList 暂未实现\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onMemoryWarning":{"name":"## uni.onMemoryWarning(callback) @onmemorywarning","description":"监听内存不足告警事件。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnMemoryWarningCallbackResult 的属性值 @onmemorywarningcallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| level | - |\n","returnValue":"","tutorial":""},"offMemoryWarning":{"name":"## uni.offMemoryWarning(callback) @offmemorywarning","description":"取消监听内存不足告警事件。不传入 callback 则取消所有监听。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OffMemoryWarningCallbackResult 的属性值 @offmemorywarningcallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| level | - |\n","returnValue":"","tutorial":""},"onUserCaptureScreen":{"name":"## uni.onUserCaptureScreen(callback?) @onusercapturescreen","description":"开启截屏监听\r\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-usercapturescreen](https://ext.dcloud.net.cn/plugin?name=uni-usercapturescreen)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnUserCaptureScreenCallbackResult 的属性值 @onusercapturescreencallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n","returnValue":"","tutorial":""},"offUserCaptureScreen":{"name":"## uni.offUserCaptureScreen(callback?) @offusercapturescreen","description":"关闭截屏监听\r\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-usercapturescreen](https://ext.dcloud.net.cn/plugin?name=uni-usercapturescreen)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnUserCaptureScreenCallbackResult 的属性值 @onusercapturescreencallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n","returnValue":"","tutorial":""},"createRequestPermissionListener":{"name":"## uni.createRequestPermissionListener() @createrequestpermissionlistener","description":"创建一个监听权限申请的对象。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RequestPermissionListener](#requestpermissionlistener-values) |\n\n#### RequestPermissionListener 的方法 @requestpermissionlistener-values \n\n#### onRequest(callback : RequestPermissionListenerRequestCallback) : void @onrequest\n监听申请系统权限\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onConfirm(callback : RequestPermissionListenerConfirmCallback) : void @onconfirm\n监听弹出系统权限授权框\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onComplete(callback : RequestPermissionListenerCompleteCallback) : void @oncomplete\n监听权限申请完成\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### stop() : void @stop\n取消所有监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n \n","tutorial":""},"scanCode":{"name":"## uni.scanCode(options?) @scancode","description":"扫码","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| onlyFromCamera | - |\n@| scanType | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ScanCodeSuccess 的属性值 @scancodesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| result | - |\n| scanType | - |\n","returnValue":"","tutorial":""},"addPhoneContact":{"name":"## uni.addPhoneContact(options) @addphonecontact","description":"手机通讯录联系人和联系方式的增加","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| photoFilePath | - |\n@| nickName | - |\n@| lastName | - |\n@| middleName | - |\n@| firstName | - |\n@| remark | - |\n@| mobilePhoneNumber | - |\n@| weChatNumber | - |\n@| addressCountry | - |\n@| addressState | - |\n@| addressCity | - |\n@| addressStreet | - |\n@| addressPostalCode | - |\n@| organization | - |\n@| title | - |\n@| workFaxNumber | - |\n@| workPhoneNumber | - |\n@| hostNumber | - |\n@| email | - |\n@| url | - |\n@| workAddressCountry | - |\n@| workAddressState | - |\n@| workAddressCity | - |\n@| workAddressStreet | - |\n@| workAddressPostalCode | - |\n@| homeFaxNumber | - |\n@| homePhoneNumber | - |\n@| homeAddressCountry | - |\n@| homeAddressState | - |\n@| homeAddressCity | - |\n@| homeAddressStreet | - |\n@| homeAddressPostalCode | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"openAppAuthorizeSetting":{"name":"## uni.openAppAuthorizeSetting(options) @openappauthorizesetting","description":"跳转系统授权管理页","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### OpenAppAuthorizeSettingSuccess 的属性值 @openappauthorizesettingsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### OpenAppAuthorizeSettingFail 的属性值 @openappauthorizesettingfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### OpenAppAuthorizeSettingComplete 的属性值 @openappauthorizesettingcomplete-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"","tutorial":""},"showNavigationBarLoading":{"name":"## uni.showNavigationBarLoading(options?) @shownavigationbarloading","description":"在当前页面显示导航条加载动画\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ShowNavigationBarLoadingFail 的属性值 @shownavigationbarloadingfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideNavigationBarLoading":{"name":"## uni.hideNavigationBarLoading(options?) @hidenavigationbarloading","description":"隐藏导航条加载动画\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### HideNavigationBarLoadingFail 的属性值 @hidenavigationbarloadingfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideKeyboard":{"name":"## uni.hideKeyboard(options?) @hidekeyboard","description":"隐藏键盘","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"getRecorderManager":{"name":"## uni.getRecorderManager() @getrecordermanager","description":"录音管理\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RecorderManager](#recordermanager-values) |\n\n#### RecorderManager 的方法 @recordermanager-values \n\n#### start(options: RecorderManagerStartOptions): void; @start\n开始录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| duration | - |\n@| sampleRate | - |\n@| numberOfChannels | - |\n@| encodeBitRate | - |\n@| format | - |\n@| frameSize | - | \n\n\n#### pause(): void; @pause\n暂停录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### resume(): void; @resume\n暂停录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### stop(): void; @stop\n停止录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### onStart(options: (result: any) => void): void; @onstart\n录音开始事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### onPause(options: (result: any) => void): void; @onpause\n录音暂停事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### onStop(options: (result: RecorderManagerOnStopResult) => void): void; @onstop\n录音停止事件,会回调文件地址\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n##### RecorderManagerOnStopResult 的属性值 @recordermanageronstopresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n\n#### onFrameRecorded(options: (result: any) => void): void; @onframerecorded\n已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### onError(options: (result: any) => void): void; @onerror\n录音错误事件, 会回调错误信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### (options: (result: any) => void) => void @onresume\n监听录音继续事件\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### (options: (result: any) => void) => void @oninterruptionbegin\n监听录音因为受到系统占用而被中断开始事件\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### (options: (result: any) => void) => void @oninterruptionend\n监听录音中断结束事件\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n \n","tutorial":""},"startSoterAuthentication":{"name":"## uni.startSoterAuthentication(options) @startsoterauthentication","description":"开始 SOTER 生物认证\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| requestAuthModes | - |\n@| challenge | - |\n@| authContent | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartSoterAuthenticationSuccess 的属性值 @startsoterauthenticationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| authMode | - |\n| resultJSON | - |\n| resultJSONSignature | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"checkIsSupportSoterAuthentication":{"name":"## uni.checkIsSupportSoterAuthentication(options) @checkissupportsoterauthentication","description":"获取本机支持的 SOTER 生物认证方式\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CheckIsSupportSoterAuthenticationSuccess 的属性值 @checkissupportsoterauthenticationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| supportMode | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"checkIsSoterEnrolledInDevice":{"name":"## uni.checkIsSoterEnrolledInDevice(options) @checkissoterenrolledindevice","description":"获取设备内是否录入如指纹等生物信息\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| checkAuthMode | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CheckIsSoterEnrolledInDeviceSuccess 的属性值 @checkissoterenrolledindevicesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isEnrolled | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"setUserCaptureScreen":{"name":"## uni.setUserCaptureScreen(options) @setusercapturescreen","description":"设置防截屏\r\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-usercapturescreen](https://ext.dcloud.net.cn/plugin?name=uni-usercapturescreen)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| enable | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"shareWithSystem":{"name":"## uni.shareWithSystem(options) @sharewithsystem","description":"uni.shareWithSystem函数定义\n使用系统分享。harmonyOS\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| summary | - |\n@| href | - |\n@| imageUrl | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"login":{"name":"## uni.login(options) @login","description":"登录\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.27 |\n@| scopes | - |\n@| timeout | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### LoginSuccess 的属性值 @loginsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| authResult | - |\n| code | - |\n| anonymousCode | - |\n| authCode | - |\n| authErrorScope | - |\n| authSucessScope | - |\n| appleInfo | - |\n\n#### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getUserInfo":{"name":"## uni.getUserInfo(options) @getuserinfo","description":"获取用户信息\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.27 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetUserInfoSuccess 的属性值 @getuserinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| userInfo | HBuilderX 4.27 |\n| errMsg | - |\n\n#### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseImage":{"name":"## uni.chooseImage(options) @chooseimage","description":"从本地相册选择图片或使用相机拍照","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| count | - |\n@| sizeType | HBuilderX 4.23 |\n@| sourceType | - |\n@| extension | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseImageSuccess 的属性值 @chooseimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| errMsg | - |\n| tempFilePaths | - |\n| tempFiles | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"previewImage":{"name":"## uni.previewImage(options) @previewimage","description":"预览图片","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| current | - |\n@| urls | - |\n@| showmenu | HBuilderX 4.23 |\n@| indicator | x |\n@| loop | - |\n@| longPressActions | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n##### LongPressActionsSuccessData 的属性值 @longpressactionssuccessdata-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tapIndex | - |\n| index | - |\n\n#### PreviewImageSuccess 的属性值 @previewimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| errMsg | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"closePreviewImage":{"name":"## uni.closePreviewImage(options) @closepreviewimage","description":"关闭图片预览","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ClosePreviewImageSuccess 的属性值 @closepreviewimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"saveImageToPhotosAlbum":{"name":"## uni.saveImageToPhotosAlbum(options) @saveimagetophotosalbum","description":"保存图片到系统相册","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SaveImageToPhotosAlbumSuccess 的属性值 @saveimagetophotosalbumsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getImageInfo":{"name":"## uni.getImageInfo(options) @getimageinfo","description":"获取图片信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetImageInfoSuccess 的属性值 @getimageinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| width | - |\n| height | - |\n| path | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"compressImage":{"name":"## uni.compressImage(options) @compressimage","description":"压缩图片","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| quality | - |\n@| rotate | - |\n@| compressedHeight | - |\n@| compressedWidth | - |\n@| success | - |\n@| fail | - |\n@| complete | - |\n@| height | - |\n@| width | - | \n\n#### CompressImageSuccess 的属性值 @compressimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseVideo":{"name":"## uni.chooseVideo(options) @choosevideo","description":"拍摄视频或从手机相册中选视频,返回视频的临时文件路径。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| sourceType | - |\n@| maxDuration | HBuilderX 4.25 |\n@| camera | HBuilderX 4.25 |\n@| extension | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseVideoSuccess 的属性值 @choosevideosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n| duration | - |\n| size | - |\n| height | - |\n| width | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"saveVideoToPhotosAlbum":{"name":"## uni.saveVideoToPhotosAlbum(options) @savevideotophotosalbum","description":"保存视频到系统相册","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getVideoInfo":{"name":"## uni.getVideoInfo(options) @getvideoinfo","description":"获取视频详细信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetVideoInfoSuccess 的属性值 @getvideoinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| orientation | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| duration | - |\n| size | - |\n| height | - |\n| width | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"compressVideo":{"name":"## uni.compressVideo(options) @compressvideo","description":"压缩视频","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| quality | - |\n@| bitrate | - |\n@| fps | - |\n@| resolution | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CompressVideoSuccess 的属性值 @compressvideosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n| size | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"createInnerAudioContext":{"name":"## uni.createInnerAudioContext() @createinneraudiocontext","description":"创建并返回 audio 上下文 audioContext 对象\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [InnerAudioContext](#inneraudiocontext-values) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| duration | - |\n@| currentTime | - |\n@| paused | - |\n@| src | - |\n@| startTime | - |\n@| buffered | - |\n@| autoplay | - |\n@| loop | - |\n@| obeyMuteSwitch | - |\n@| volume | - |\n@| playbackRate | - |\n#### InnerAudioContext 的方法 @inneraudiocontext-values \n\n#### pause(): void; @pause\n暂停\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### stop(): void; @stop\n停止\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### play(): void; @play\n播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### seek(position: number): void; @seek\n跳转到指定位置,单位 s\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| position | - | \n\n\n#### destroy(): void; @destroy\n销毁当前实例\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### onCanplay(callback: (result: any) => void): void; @oncanplay\n音频进入可以播放状态,但不保证后面可以流畅播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPlay(callback: (result: any) => void): void; @onplay\n音频播放事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPause(callback: (result: any) => void): void; @onpause\n音频暂停事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onStop(callback: (result: any) => void): void; @onstop\n音频停止事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onEnded(callback: (result: any) => void): void; @onended\n音频自然播放结束事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onTimeUpdate(callback: (result: any) => void): void; @ontimeupdate\n音频播放进度更新事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback: (result: any) => void): void; @onerror\n音频播放错误事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onWaiting(callback: (result: any) => void): void; @onwaiting\n音频加载中事件,当音频因为数据不足,需要停下来加载时会触发\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onSeeking(callback: (result: any) => void): void; @onseeking\n音频进行 seek 操作事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onSeeked(callback: (result: any) => void): void; @onseeked\n音频完成 seek 操作事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offCanplay(callback: (result: any) => void): void; @offcanplay\n取消监听 onCanplay 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offPlay(callback: (result: any) => void): void; @offplay\n取消监听 onPlay 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offPause(callback: (result: any) => void): void; @offpause\n取消监听 onPause 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offStop(callback: (result: any) => void): void; @offstop\n取消监听 onStop 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offEnded(callback: (result: any) => void): void; @offended\n取消监听 onEnded 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offTimeUpdate(callback: (result: any) => void): void; @offtimeupdate\n取消监听 onTimeUpdate 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offError(callback: (result: any) => void): void; @offerror\n取消监听 onWaiting 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offWaiting(callback: (result: any) => void): void; @offwaiting\n取消监听 onWaiting 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offSeeking(callback: (result: any) => void): void; @offseeking\n取消监听 onSeeking 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offSeeked(callback: (result: any) => void): void; @offseeked\n取消监听 onSeeked 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"getBackgroundAudioManager":{"name":"## uni.getBackgroundAudioManager() @getbackgroundaudiomanager","description":"获取全局唯一的背景音频管理器 backgroundAudioManager\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [BackgroundAudioManager](#backgroundaudiomanager-values) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| duration | - |\n@| currentTime | - |\n@| paused | - |\n@| src | - |\n@| startTime | - |\n@| buffered | - |\n@| title | - |\n@| epname | - |\n@| singer | - |\n@| coverImgUrl | - |\n@| webUrl | - |\n@| protocol | - |\n@| playbackRate | - |\n#### BackgroundAudioManager 的方法 @backgroundaudiomanager-values \n\n#### play(): void; @play\n播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### pause(): void; @pause\n暂停\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### seek(position: number): void; @seek\n跳转到指定位置,单位 s\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| position | - | \n\n\n#### stop(): void; @stop\n停止\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### onCanplay(callback: (result: any) => void): void; @oncanplay\n背景音频进入可以播放状态,但不保证后面可以流畅播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPlay(callback: (result: any) => void): void; @onplay\n背景音频播放事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPause(callback: (result: any) => void): void; @onpause\n背景音频暂停事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onStop(callback: (result: any) => void): void; @onstop\n背景音频停止事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onEnded(callback: (result: any) => void): void; @onended\n背景音频自然播放结束事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onTimeUpdate(callback: (result: any) => void): void; @ontimeupdate\n背景音频播放进度更新事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPrev(callback: (result: any) => void): void; @onprev\n用户在系统音乐播放面板点击上一曲事件(iOS only)\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onNext(callback: (result: any) => void): void; @onnext\n用户在系统音乐播放面板点击下一曲事件(iOS only)\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback: (result: any) => void): void; @onerror\n背景音频播放错误事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onWaiting(callback: (result: any) => void): void; @onwaiting\n音频加载中事件,当音频因为数据不足,需要停下来加载时会触发\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"chooseMedia":{"name":"## uni.chooseMedia(options) @choosemedia","description":"拍摄或从手机相册中选择图片或视频。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| count | - |\n@| mediaType | - |\n@| sourceType | - |\n@| sizeType | HBuilderX 4.23 |\n@| maxDuration | HBuilderX 4.31 |\n@| camera | HBuilderX 4.25 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseMediaSuccess 的属性值 @choosemediasuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFiles | - |\n| type | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseFile":{"name":"## uni.chooseFile(options) @choosefile","description":"从本地选择文件(仅支持H5)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| count | - |\n@| type | - |\n@| extension | - |\n@| sizeType | - |\n@| sourceType | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseFileSuccess 的属性值 @choosefilesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePaths | - |\n| tempFiles | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"canvasToTempFilePath":{"name":"## uni.canvasToTempFilePath(options, componentInstance) @canvastotempfilepath","description":"把当前画布指定区域的内容导出生成指定大小的图片\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| x | - |\n@| y | - |\n@| width | - |\n@| height | - |\n@| destWidth | - |\n@| destHeight | - |\n@| canvasId | - |\n@| fileType | - |\n@| quality | - |\n@| success | - |\n@| fail | - |\n@| complete | - |\n| componentInstance | - | \n\n#### CanvasToTempFilePathSuccess 的属性值 @canvastotempfilepathsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n","returnValue":"","tutorial":""},"createCanvasContextAsync":{"name":"## uni.createCanvasContextAsync(options) @createcanvascontextasync","description":"获取CanvasContext对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| complete | - | \n\n#### CanvasContext 的方法 @canvascontext-values \n\n#### getContext(type: '2d'): CanvasRenderingContext2D \\| null @getcontext\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [CanvasRenderingContext2D](/api/canvasrenderingcontext2d.md) | 否 |\n \n\n#### toBlob(callback: CanvasContextToBlobCallback, type?: string, quality?: number): void @toblob\n创造 Blob 对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - |\n| type | - |\n| quality | - | \n\n\n#### toDataURL(): string @todataurl\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### createImage(): Image @createimage\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| [Image](#image-values) | 重复的图像源,支持代码包路径和本地临时路径 (本地路径) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n###### Image 的方法 @image-values \n\n###### onload(): void \\| null @onload\n图片加载完成事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### takeSnapshot(options: TakeSnapshotOptions): void @takesnapshot\n对当前组件进行截图,调用此方法会将当前组件(包含子节点)渲染结果导出成图片。\n成功会返回图片对应的临时文件路径,目前默认png格式\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | - |\n@| format | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### TakeSnapshotSuccess 的属性值 @takesnapshotsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n###### TakeSnapshotFail 的属性值 @takesnapshotfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n\n###### appendChild(aChild: UniElement): void @appendchild\n将一个元素添加到指定父元素的子元素列表的末尾处。如果将被插入的元素已经存在于当前文档的文档树中,那么将会它从原先的位置移动到新的位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n\n###### insertBefore(newChild: UniElement, refChild?: UniElement \\| null): UniElement \\| null @insertbefore\n在参考元素之前插入一个拥有指定父元素的子元素。如果给定的子元素是对文档中现有元素的引用,insertBefore() 会将其从当前位置移动到新位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| newChild | - |\n| refChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### setAttribute(key: string, value: string): void @setattribute\n设置指定元素上的某个属性值。如果设置的属性已经存在,则更新该属性值;否则使用指定的名称和值添加一个新的属性。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - |\n| value | - | \n\n\n###### getAttribute(key: string): string \\| null @getattribute\n获取元素指定的属性值,如果指定的属性不存在则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| string | 否 |\n \n\n###### hasAttribute(key: string): boolean @hasattribute\n返回改元素是否包含有指定的属性,属性存在则返回true,否则返回false。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n###### removeAttribute(key: string): void @removeattribute\n从元素中删除一个属性,如果指定的属性不存在,则不做任何操作,也不会产生错误。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n\n###### getBoundingClientRect(): DOMRect @getboundingclientrect\n获取元素的大小及其相对于窗口的位置信息。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [DOMRect](/dom/domrect.md) |\n \n\n###### getDrawableContext(): DrawableContext \\| null @getdrawablecontext\n获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [DrawableContext](/dom/drawablecontext.md) | 否 |\n \n\n###### removeChild(aChild: UniElement): UniElement \\| null @removechild\n从元素中删除一个子元素,返回删除的元素。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### remove(): void @remove\n把元素对象从它所属的 DOM 树中删除。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### scrollTo(x: number, y: number): void @scrollto\n使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### scrollBy(x: number, y: number): void @scrollby\n使得元素滚动一段特定距离 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### querySelector(selector: string.cssSelectorString): UniElement \\| null @queryselector\n返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### querySelectorAll(selector: string.cssSelectorString): UniElement[] \\| null @queryselectorall\n返回与指定的选择器组匹配的文档中的元素列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Array\\<[UniElement](/dom/unielement.md)\\> | 否 |\n \n\n###### focus(): void @focus\n使元素获取焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### blur(): void @blur\n使元素丢失焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### getIOSView(): UIView \\| null @getiosview\n获取元素ios原生view\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| UIView | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n获取元素android原生view 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getAndroidActivity(): Activity \\| null @getandroidactivity\n获取元素android原生activity 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Activity | 否 |\n \n\n###### getPage(): UniPage \\| null @getpage\n获取元素所属的页面对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n\n###### UniPage 的方法 @unipage-values \n\n###### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n###### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| $component | - |\n@| $disableEscBack | - |\n###### UniDialogPage 的方法 @unidialogpage-values \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n \n \n \n \n\n#### createPath2D(): Path2D @createpath2d\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [Path2D](/api/path2d.md) |\n \n\n#### requestAnimationFrame(callback: RequestAnimationFrameCallback): number; @requestanimationframe\n在下一次重绘之前,调用用户提供的回调函数\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n\n#### cancelAnimationFrame(taskId: number): void; @cancelanimationframe\n取消一个先前通过调用 uni.requestAnimationFrame() 方法添加到计划中的动画帧请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| taskId | - | \n\n","returnValue":"","tutorial":""},"getLocation":{"name":"## uni.getLocation(options) @getlocation","description":"获取当前的地理位置、速度","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | HBuilderX 4.25 |\n@| altitude | HBuilderX 4.25 |\n@| highAccuracyExpireTime | HBuilderX 4.25 |\n@| isHighAccuracy | HBuilderX 4.25 |\n@| success | HBuilderX 4.25 |\n@| fail | HBuilderX 4.25 |\n@| complete | HBuilderX 4.25 | \n\n#### GetLocationSuccess 的属性值 @getlocationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | HBuilderX 4.25 |\n| longitude | HBuilderX 4.25 |\n| speed | HBuilderX 4.25 |\n| accuracy | HBuilderX 4.25 |\n| altitude | HBuilderX 4.25 |\n| verticalAccuracy | x |\n| horizontalAccuracy | x |\n| address | x |\n\n#### IGetLocationFail 的属性值 @igetlocationfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"openLocation":{"name":"## uni.openLocation(options) @openlocation","description":"使用地图查看位置\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| latitude | - |\n@| longitude | - |\n@| scale | - |\n@| name | - |\n@| address | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IOpenLocationError 的属性值 @iopenlocationerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseLocation":{"name":"## uni.chooseLocation(options) @chooselocation","description":"打开地图选择位置。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| latitude | - |\n@| longitude | - |\n@| keyword | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseLocationSuccess 的属性值 @chooselocationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| address | - |\n| latitude | - |\n| longitude | - |\n\n#### IChooseLocationError 的属性值 @ichooselocationerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onLocationChange":{"name":"## uni.onLocationChange(callback) @onlocationchange","description":"监听实时地理位置变化事件,需结合 uni.startLocationUpdate 或 uni.startLocationUpdateBackground 使用。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnLocationChangeCallbackResult 的属性值 @onlocationchangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | - |\n| longitude | - |\n| accuracy | - |\n| altitude | - |\n| altitudeAccuracy | - |\n| speed | - |\n| horizontalAccuracy | - |\n| verticalAccuracy | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"offLocationChange":{"name":"## uni.offLocationChange(callback) @offlocationchange","description":"关闭监听实时位置变化,前后台都停止消息接收。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OffLocationChangeCallbackResult 的属性值 @offlocationchangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | - |\n| longitude | - |\n| accuracy | - |\n| altitude | - |\n| altitudeAccuracy | - |\n| speed | - |\n| horizontalAccuracy | - |\n| verticalAccuracy | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"onLocationChangeError":{"name":"## uni.onLocationChangeError(callback) @onlocationchangeerror","description":"监听持续定位接口返回失败时触发。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"offLocationChangeError":{"name":"## uni.offLocationChangeError(callback) @offlocationchangeerror","description":"取消注册位置更新错误回调。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"startLocationUpdate":{"name":"## uni.startLocationUpdate(options) @startlocationupdate","description":"开启小程序进入前台时接收位置消息。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartLocationUpdateSuccess 的属性值 @startlocationupdatesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| address | - |\n| latitude | - |\n| longitude | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"stopLocationUpdate":{"name":"## uni.stopLocationUpdate(options) @stoplocationupdate","description":"关闭监听实时位置变化,前后台都停止消息接收。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"getStorageInfo":{"name":"## uni.getStorageInfo(options) @getstorageinfo","description":"uni.getStorageInfo函数定义\n异步获取当前 storage 的相关信息。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetStorageInfoSuccess 的属性值 @getstorageinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| keys | - |\n| currentSize | - |\n| limitSize | - |\n","returnValue":"","tutorial":""},"getStorageInfoSync":{"name":"## uni.getStorageInfoSync() @getstorageinfosync","description":"uni.getStorageInfoSync函数定义\n同步获取当前 storage 的相关信息。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| **GetStorageInfoSuccess** | uni.getStorageInfo成功回调参数 |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| keys | - |\n@| currentSize | - |\n@| limitSize | - | \n","tutorial":""},"getStorage":{"name":"## uni.getStorage(options) @getstorage","description":"uni.getStorage函数定义\n从本地存储中异步获取指定 key 对应的内容。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| key | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetStorageSuccess 的属性值 @getstoragesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n","returnValue":"","tutorial":""},"getStorageSync":{"name":"## uni.getStorageSync(key) @getstoragesync","description":"uni.getStorageSync函数定义\n从本地存储中同步获取指定 key 对应的内容。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| any | 否 |\n \n","tutorial":""},"setStorage":{"name":"## uni.setStorage(options) @setstorage","description":"uni.setStorage函数定义\n将数据存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| key | - |\n@| data | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"setStorageSync":{"name":"## uni.setStorageSync(key, data) @setstoragesync","description":"uni.setStorageSync函数定义\n将 data 存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - |\n| data | - | \n","returnValue":"","tutorial":""},"removeStorage":{"name":"## uni.removeStorage(options) @removestorage","description":"uni.removeStorage函数定义\n从本地存储中异步移除指定 key。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| key | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"removeStorageSync":{"name":"## uni.removeStorageSync(key) @removestoragesync","description":"uni.removeStorageSync函数定义\n从本地存储中同步移除指定 key。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n","returnValue":"","tutorial":""},"clearStorage":{"name":"## uni.clearStorage(option?) @clearstorage","description":"uni.clearStorage函数定义\n清除本地数据存储。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"clearStorageSync":{"name":"## uni.clearStorageSync() @clearstoragesync","description":"uni.clearStorageSync函数定义\n清除本地数据存储。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"getFileSystemManager":{"name":"## uni.getFileSystemManager() @getfilesystemmanager","description":"获取文件管理器","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [FileSystemManager](#filesystemmanager-values) |\n\n#### FileSystemManager 的方法 @filesystemmanager-values \n\n#### readFile(options : ReadFileOptions) : void; @readfile\n读取本地文件内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| encoding | - |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### ReadFileSuccessResult 的属性值 @readfilesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n\n###### IFileSystemManagerFail 的属性值 @ifilesystemmanagerfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### readFileSync(filePath : string, encoding ?: string) : any; @readfilesync\nFileSystemManager.readFile 的同步版本参数\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| encoding | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n\n#### writeFile(options : WriteFileOptions) : void; @writefile\n写文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| encoding | - |\n@| data | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### FileManagerSuccessResult 的属性值 @filemanagersuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n\n#### read(option : ReadOption) : void; @read\n读文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| arrayBuffer | - |\n@| fd | - |\n@| length | - |\n@| offset | - |\n@| position | - |\n@| complete | - |\n@| fail | - |\n@| success | - | \n\n###### ReadSuccessCallbackResult 的属性值 @readsuccesscallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| arrayBuffer | - |\n| bytesRead | - |\n| errMsg | - |\n\n\n#### readSync(option : ReadSyncOption) : ReadResult; @readsync\n读文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| arrayBuffer | - |\n@| fd | - |\n@| length | - |\n@| offset | - |\n@| position | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **ReadResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| arrayBuffer | - |\n@| bytesRead | - | \n\n#### writeFileSync(filePath : string, data : any, encoding ?: string) : void; @writefilesync\nFileSystemManager.writeFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| data | - |\n| encoding | - | \n\n\n#### unlink(options : UnLinkOptions) : void; @unlink\n删除文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### unlinkSync(filePath : string) : void; @unlinksync\nFileSystemManager.unlink 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - | \n\n\n#### mkdir(options : MkDirOptions) : void; @mkdir\n创建目录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| dirPath | - |\n@| recursive | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### mkdirSync(dirPath : string, recursive : boolean) : void; @mkdirsync\nFileSystemManager.mkdir 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| dirPath | - |\n| recursive | - | \n\n\n#### rmdir(options : RmDirOptions) : void; @rmdir\n删除目录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| dirPath | - |\n@| recursive | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### rmdirSync(dirPath : string, recursive : boolean) : void; @rmdirsync\nFileSystemManager.rmdir 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| dirPath | - |\n| recursive | - | \n\n\n#### readdir(options : ReadDirOptions) : void; @readdir\n读取目录内文件列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| dirPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### ReadDirSuccessResult 的属性值 @readdirsuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| files | - |\n\n\n#### readdirSync(dirPath : string) : string[] \\| null; @readdirsync\nFileSystemManager.readdir 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| dirPath | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Array\\ | 否 |\n \n\n#### access(options : AccessOptions) : void; @access\n判断文件/目录是否存在\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### accessSync(path : string) : void; @accesssync\nFileSystemManager.access 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - | \n\n\n#### rename(options : RenameOptions) : void; @rename\n重命名文件。可以把文件从 oldPath 移动到 newPath\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| oldPath | - |\n@| newPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### renameSync(oldPath : string, newPath : string) : void; @renamesync\nFileSystemManager.rename 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| oldPath | - |\n| newPath | - | \n\n\n#### copyFile(options : CopyFileOptions) : void; @copyfile\n复制文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| srcPath | - |\n@| destPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### copyFileSync(srcPath : string, destPath : string) : void; @copyfilesync\nFileSystemManager.copyFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| srcPath | - |\n| destPath | - | \n\n\n#### getFileInfo(options : GetFileInfoOptions) : void; @getfileinfo\n获取该本地临时文件 或 本地缓存文件 信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| digestAlgorithm | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### GetFileInfoSuccessResult 的属性值 @getfileinfosuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| digest | - |\n| size | - |\n| errMsg | - |\n\n\n#### stat(options : StatOptions) : void; @stat\n获取文件 Stats 对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | - |\n@| recursive | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### StatSuccessResult 的属性值 @statsuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| stats | - |\n\n###### Stats 的方法 @stats-values \n\n###### isDirectory() : boolean; @isdirectory\n判断当前文件是否一个目录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n###### isFile() : boolean; @isfile\n判断当前文件是否一个普通文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n\n#### statSync(path : string, recursive : boolean) : FileStats[]; @statsync\nFileSystemManager.stat 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n| recursive | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[FileStats](#filestats-values)\\> |\n \n\n#### appendFile(options : AppendFileOptions) : void; @appendfile\n在文件结尾追加内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| encoding | - |\n@| data | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### appendFileSync(filePath : string, data : any, encoding ?: string) : void; @appendfilesync\nFileSystemManager.appendFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| data | - |\n| encoding | - | \n\n\n#### saveFile(options : SaveFileOptions) : void; @savefile\n保存临时文件到本地。此接口会移动临时文件,因此调用成功后,tempFilePath 将不可用。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| tempFilePath | - |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### SaveFileSuccessResult 的属性值 @savefilesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| savedFilePath | - |\n\n\n#### saveFileSync(tempFilePath : string, filePath : string \\| null) : string; @savefilesync\nFileSystemManager.saveFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n| filePath | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### removeSavedFile(options : RemoveSavedFileOptions) : void; @removesavedfile\n删除该小程序下已保存的本地缓存文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### unzip(options : UnzipFileOptions) : void; @unzip\n解压文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| zipFilePath | - |\n@| targetPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### getSavedFileList(options : GetSavedFileListOptions) : void; @getsavedfilelist\n获取该已保存的本地缓存文件列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### GetSavedFileListResult 的属性值 @getsavedfilelistresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| fileList | - |\n\n\n#### truncate(options : TruncateFileOptions) : void; @truncate\n对文件内容进行截断操作\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| length | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### truncateSync(filePath : string, length ?: number) : void; @truncatesync\n对文件内容进行截断操作 (truncate 的同步版本)\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| length | - | \n\n\n#### readCompressedFile(options : ReadCompressedFileOptions) : void; @readcompressedfile\n读取指定压缩类型的本地文件内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| compressionAlgorithm | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### ReadCompressedFileResult 的属性值 @readcompressedfileresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n\n\n#### readCompressedFileSync(filePath : string, compressionAlgorithm : string) : string @readcompressedfilesync\n同步读取指定压缩类型的本地文件内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| compressionAlgorithm | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### open(options : OpenFileOptions) : void; @open\n打开文件,返回文件描述符\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| flag | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### OpenFileSuccessResult 的属性值 @openfilesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| fd | - |\n\n\n#### openSync(options : OpenFileSyncOptions) : string; @opensync\n同步打开文件,返回文件描述符\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| flag | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### write(options : WriteOptions) : void; @write\n写入文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| data | - |\n@| offset | - |\n@| length | - |\n@| position | - |\n@| encoding | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### WriteResult 的属性值 @writeresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| bytesWritten | - |\n| errMsg | - |\n\n\n#### writeSync(options : WriteSyncOptions) : WriteResult; @writesync\n同步写入文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| data | - |\n@| encoding | - |\n@| length | - |\n@| offset | - |\n@| position | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [WriteResult](#writeresult-values) |\n \n\n#### close(options : CloseOptions) : void; @close\n关闭文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### closeSync(options : CloseSyncOptions) : void; @closesync\n同步关闭文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - | \n\n\n#### fstat(options : FStatOptions) : void; @fstat\n获取文件的状态信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### FStatSuccessResult 的属性值 @fstatsuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| stats | - |\n\n\n#### fstatSync(options : FStatSyncOptions) : Stats; @fstatsync\n同步获取文件的状态信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| [Stats](#stats-values) | Stats 对象,包含了文件的状态信息 |\n \n\n#### ftruncate(options : FTruncateFileOptions) : void; @ftruncate\n对文件内容进行截断操作\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| length | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### ftruncateSync(options : FTruncateFileSyncOptions) : void; @ftruncatesync\n同步对文件内容进行截断操作\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| length | - | \n\n\n#### readZipEntry(options : ReadZipEntryOptions) : void; @readzipentry\n读取压缩包内的文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| encoding | - |\n@| entries | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### EntriesResult 的属性值 @entriesresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| result | - |\n\n \n","tutorial":""},"getUniverifyManager":{"name":"## uni.getUniverifyManager() @getuniverifymanager","description":"获取一键登录管理对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [UniverifyManager](#univerifymanager-values) |\n\n#### UniverifyManager 的方法 @univerifymanager-values \n\n#### preLogin(options : PreLoginOptions) : void @prelogin\n预登录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### PreLoginFail 的属性值 @preloginfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### login(options : LoginOptions) : void @login\n登录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.27 |\n@| scopes | - |\n@| timeout | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### LoginSuccess 的属性值 @loginsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| authResult | - |\n| code | - |\n| anonymousCode | - |\n| authCode | - |\n| authErrorScope | - |\n| authSucessScope | - |\n| appleInfo | - |\n\n###### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### close() : void @close\n关闭登录页\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### isPreLoginValid() : boolean @ispreloginvalid\n预登录是否有效\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n \n","tutorial":""},"getFacialRecognitionMetaInfo":{"name":"## uni.getFacialRecognitionMetaInfo() @getfacialrecognitionmetainfo","description":"获取阿里云实人认证meta info","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n","tutorial":""},"startFacialRecognitionVerify":{"name":"## uni.startFacialRecognitionVerify(faceStyle) @startfacialrecognitionverify","description":"启动人脸识别","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| faceStyle | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| certifyId | - |\n@| progressBarColor | x |\n@| screenOrientation | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartFacialRecognitionVerifySuccess 的属性值 @startfacialrecognitionverifysuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| cause | - |\n\n#### IFacialRecognitionVerifyError 的属性值 @ifacialrecognitionverifyerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"createRewardedVideoAd":{"name":"## uni.createRewardedVideoAd(option) @createrewardedvideoad","description":"创建激励视频广告对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| adpid | - |\n@| urlCallback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RewardedVideoAd](#rewardedvideoad-values) |\n\n#### RewardedVideoAd 的方法 @rewardedvideoad-values \n\n#### show() : Promise\\ @show\n广告加载成功之后,调用此方法展示广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### load() : Promise\\ @load\n加载广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### destroy() : void @destroy\n销毁广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### onLoad(callback : AdCallBackEvent) : void @onload\n绑定广告 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offLoad(callback : AdCallBackEvent) : void @offload\n解除绑定 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback : AdErrorCallBackEvent) : void @onerror\n绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### IUniAdError 的属性值 @iuniaderror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### offError(callback : AdErrorCallBackEvent) : void @offerror\n解除绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onClose(callback : AdCloseCallBackEvent) : void @onclose\n绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### VideoAdClose 的属性值 @videoadclose-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isEnded | - |\n\n\n#### offClose(callback : AdCloseCallBackEvent) : void @offclose\n解除绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onAdClicked(callback : AdCallBackEvent) : void; @onadclicked\n绑定广告可点击屏幕区域事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onVerify(callback : AdVerifyCallBackEvent) : void; @onverify\n绑定 verify 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"createInterstitialAd":{"name":"## uni.createInterstitialAd(option) @createinterstitialad","description":"创建插屏广告对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - | \n\n### CreateInterstitialAdOptions 的属性值 @createinterstitialadoptions-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| adpid | - |\n\n### InterstitialAd 的方法 @interstitialad-values \n\n### show() : Promise\\ @show\n广告加载成功之后,调用此方法展示广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n#### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n### load() : Promise\\ @load\n加载广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n#### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n### destroy() : void @destroy\n销毁广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n### onLoad(callback : AdCallBackEvent) : void @onload\n绑定广告 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### offLoad(callback : AdCallBackEvent) : void @offload\n解除绑定 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### onError(callback : AdErrorCallBackEvent) : void @onerror\n绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### offError(callback : AdErrorCallBackEvent) : void @offerror\n解除绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### onClose(callback : AdCloseCallBackEvent) : void @onclose\n绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### offClose(callback : AdCloseCallBackEvent) : void @offclose\n解除绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### onAdClicked(callback : AdCallBackEvent) : void; @onadclicked\n绑定广告可点击屏幕区域事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [InterstitialAd](#interstitialad-values) |\n\n#### InterstitialAd 的方法 @interstitialad-values \n\n#### show() : Promise\\ @show\n广告加载成功之后,调用此方法展示广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### load() : Promise\\ @load\n加载广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### destroy() : void @destroy\n销毁广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### onLoad(callback : AdCallBackEvent) : void @onload\n绑定广告 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offLoad(callback : AdCallBackEvent) : void @offload\n解除绑定 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback : AdErrorCallBackEvent) : void @onerror\n绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### IUniAdError 的属性值 @iuniaderror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### offError(callback : AdErrorCallBackEvent) : void @offerror\n解除绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onClose(callback : AdCloseCallBackEvent) : void @onclose\n绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### VideoAdClose 的属性值 @videoadclose-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isEnded | - |\n\n\n#### offClose(callback : AdCloseCallBackEvent) : void @offclose\n解除绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onAdClicked(callback : AdCallBackEvent) : void; @onadclicked\n绑定广告可点击屏幕区域事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"requestPayment":{"name":"## uni.requestPayment(options) @requestpayment","description":"请求支付","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.26 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.25 |\n@| orderInfo | HBuilderX 4.25 |\n@| success | HBuilderX 4.25 |\n@| fail | HBuilderX 4.25 |\n@| complete | HBuilderX 4.25 | \n\n#### RequestPaymentSuccess 的属性值 @requestpaymentsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.25 |\n\n#### IRequestPaymentFail 的属性值 @irequestpaymentfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"requestVirtualPayment":{"name":"## uni.requestVirtualPayment(options) @requestvirtualpayment","description":"请求支付","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### IRequestVirtualPaymentFail 的属性值 @irequestvirtualpaymentfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getVirtualPaymentManager":{"name":"## uni.getVirtualPaymentManager() @getvirtualpaymentmanager","description":"获取各平台虚拟支付的管理类,用于操作各平台专有的API。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| () => [VirtualPaymentManager](#virtualpaymentmanager-values) | virtual-payment的管理类 |\n\n#### VirtualPaymentManager 的方法 @virtualpaymentmanager-values \n\n#### restoreTransactions(options : AppleIAPRestoreOptions) : void; @restoretransactions\n恢复苹果服务器已支付的交易列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n###### IAppleIAPRestoreFail 的属性值 @iappleiaprestorefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### getUnfinishedTransactions(options : AppleIAPUnfinishedTransactionOptions) : void; @getunfinishedtransactions\n获取苹果服务器已支付且未关闭的交易列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n###### IAppleIAPUnfinishedTransactionFail 的属性值 @iappleiapunfinishedtransactionfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### finishTransaction(options : AppleIAPFinishTransactionOptions) : void; @finishtransaction\n关闭苹果服务器订单\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n###### IAppleIAPFinishTransactionFail 的属性值 @iappleiapfinishtransactionfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n \n","tutorial":""},"getPushClientId":{"name":"## uni.getPushClientId(options) @getpushclientid","description":"获取客户端唯一的推送标识","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"onPushMessage":{"name":"## uni.onPushMessage(callback) @onpushmessage","description":"启动监听推送消息事件","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"offPushMessage":{"name":"## uni.offPushMessage(callback) @offpushmessage","description":"关闭推送消息监听事件,iOS端调用会关闭所有监听。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"createPushMessage":{"name":"## uni.createPushMessage(options) @createpushmessage","description":"创建本地通知栏消息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"getPushChannelManager":{"name":"## uni.getPushChannelManager() @getpushchannelmanager","description":"获取通知渠道管理器,Android 8系统以上才可以设置通知渠道,Android 8系统以下返回null,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),iOS不支持。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [ChannelManager](#channelmanager-values) |\n\n#### ChannelManager 的方法 @channelmanager-values \n\n#### setPushChannel(options : SetPushChannelOptions) : void; @setpushchannel\n设置推送渠道\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| soundName | - |\n@| channelId | - |\n@| channelDesc | - |\n@| enableLights | - |\n@| enableVibration | - |\n@| importance | - |\n@| lockscreenVisibility | - | \n\n\n#### getAllChannels() : Array\\; @getallchannels\n获取当前应用注册的所有的通知渠道。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\ |\n \n \n","tutorial":""},"setAppBadgeNumber":{"name":"## uni.setAppBadgeNumber(num, options?) @setappbadgenumber","description":"设置应用图标上显示的角标数字,注意:不同手机厂商的角标显示规则不同,有部分设备的rom版本不支持显示角标,另有部分rom需要在应用的通知管理里开启`桌面角标`配置,才可以设置角标成功。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| num | - |\n| options | - | \n","returnValue":"","tutorial":""},"getChannelManager":{"name":"## uni.~~getChannelManager()~~ @getchannelmanager","description":"获取通知渠道管理器,Android 8系统以上才可以设置通知渠道,Android 8系统以下返回null,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn) ,iOS不支持。 **已废弃,仅为了向下兼容保留,建议使用`getPushChannelManager`。**","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [ChannelManager](#channelmanager-values) |\n\n#### ChannelManager 的方法 @channelmanager-values \n\n#### setPushChannel(options : SetPushChannelOptions) : void; @setpushchannel\n设置推送渠道\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| soundName | - |\n@| channelId | - |\n@| channelDesc | - |\n@| enableLights | - |\n@| enableVibration | - |\n@| importance | - |\n@| lockscreenVisibility | - | \n\n\n#### getAllChannels() : Array\\; @getallchannels\n获取当前应用注册的所有的通知渠道。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\ |\n \n \n","tutorial":""},"createWebviewContext":{"name":"## uni.createWebviewContext(webviewId, component?) @createwebviewcontext","description":"创建 web-view 组件的上下文对象,用于操作 web-view 的行为。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| webviewId | - |\n| component | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 | 必备 |\n| :- | :- | :- |\n| [WebviewContext](#webviewcontext-values) | web-view组件上下文对象 | 否 |\n\n#### WebviewContext 的方法 @webviewcontext-values \n\n#### back() : void @back\n后退到 web-view 组件网页加载历史的上一页,如果不存在上一页则没有任何效果。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### forward() : void @forward\n前进到 web-view 组件网页加载历史的下一页,如果不存在下一页则没有任何效果。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### reload() : void @reload\n重新加载 web-view 组件当前页面。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### stop() : void @stop\n停止加载 web-view 组件当前网页,该方法不能阻止已经加载的 html 文档,但是能够阻止未完成的图片及延迟加载的资源。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### evalJS(js : string) : void @evaljs\n在网页中执行指定的js脚本,在 uvue 页面中可通过此方法向 web-view 组件加载的页面发送数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| js | - | \n\n \n","tutorial":""},"createVideoContext":{"name":"## uni.createVideoContext(videoId, component?) @createvideocontext","description":"创建并返回 video 上下文 videoContext 对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| videoId | - |\n| component | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 | 必备 |\n| :- | :- | :- |\n| [VideoContext](#videocontext-values) | video组件上下文对象 | 否 |\n\n#### VideoContext 的方法 @videocontext-values \n\n#### play() : void; @play\n播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### pause() : void; @pause\n暂停\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### seek(position : number) : void; @seek\n跳转到指定位置\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| position | - | \n\n\n#### stop() : void; @stop\n停止视频\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### sendDanmu(danmu : Danmu) : void; @senddanmu\n发送弹幕\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| danmu | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| text | - |\n@| color | - |\n@| time | - | \n\n\n#### playbackRate(rate : number) : void; @playbackrate\n设置倍速播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| rate | - | \n\n\n#### requestFullScreen(direction ?: RequestFullScreenOptions \\| null) : void; @requestfullscreen\n进入全屏\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | - | \n\n\n#### exitFullScreen() : void; @exitfullscreen\n退出全屏\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n \n","tutorial":""},"createMapContext":{"name":"## uni.createMapContext(mapId, component?) @createmapcontext","description":"创建并返回 map 上下文 mapContext 对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| mapId | - |\n| component | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [MapContext](#mapcontext-values) | 否 |\n\n#### MapContext 的方法 @mapcontext-values \n\n#### getCenterLocation(options : MapContextGetCenterLocationOptions) : void @getcenterlocation\n获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 uni.openLocation\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### LatLng 的属性值 @latlng-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | - |\n| longitude | - |\n\n\n#### moveToLocation(options : MapContextMoveToLocationOptions) : void @movetolocation\n将地图中心移动到当前定位点,需要配合map组件的show-location使用\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| latitude | - |\n@| longitude | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### translateMarker(options : MapContextTranslateMarkerOptions) : void; @translatemarker\n平移marker,带动画\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markerId | - |\n@| destination | - |\n@| rotate | - |\n@| moveWithRotate | - |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### includePoints(options : MapContextIncludePointsOptions) : void; @includepoints\n缩放视野展示所有经纬度\t\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| points | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### getRegion(options : MapContextGetRegionOptions) : void; @getregion\n获取当前地图的视野范围\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### MapContextGetRegionResult 的属性值 @mapcontextgetregionresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| southwest | - |\n| northeast | - |\n\n\n#### getScale(options : MapContextGetScaleOptions) : void; @getscale\n获取当前地图的缩放级别\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### MapContextGetScaleResult 的属性值 @mapcontextgetscaleresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| scale | - |\n\n\n#### addGroundOverlay(options : MapContextAddGroundOverlayOptions) : void; @addgroundoverlay\n创建自定义图片图层,图片会随着地图缩放而缩放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| src | - |\n@| bounds | - |\n@| visible | - |\n@| zIndex | - |\n@| opacity | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### addMarkers(options : MapContextAddMarkersOptions) : void; @addmarkers\n创建自定义图片图层,图片会随着地图缩放而缩放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markers | - |\n@| clear | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### moveAlong(options : MapContextMoveAlongOptions) : void; @movealong\n沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markerId | - |\n@| path | - |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### removeGroundOverlay(options : MapContextRemoveGroundOverlayOptions) : void; @removegroundoverlay\n移除自定义图片图层\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### removeMarkers(options : MapContextRemoveMarkersOptions) : void; @removemarkers\n移除 marker\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markerIds | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### updateGroundOverlay(options : MapContextUpdateGroundOverlayOptions) : void; @updategroundoverlay\n更新自定义图片图层。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n \n","tutorial":""},"createCanvasContext":{"name":"## uni.createCanvasContext(canvasId, componentInstance) @createcanvascontext","description":"创建 canvas 绘图上下文\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| canvasId | - |\n| componentInstance | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [CanvasContext](#canvascontext-values) |\n\n#### CanvasContext 的方法 @canvascontext-values \n\n#### getContext(type: '2d'): CanvasRenderingContext2D \\| null @getcontext\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [CanvasRenderingContext2D](/api/canvasrenderingcontext2d.md) | 否 |\n \n\n#### toBlob(callback: CanvasContextToBlobCallback, type?: string, quality?: number): void @toblob\n创造 Blob 对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - |\n| type | - |\n| quality | - | \n\n\n#### toDataURL(): string @todataurl\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### createImage(): Image @createimage\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| [Image](#image-values) | 重复的图像源,支持代码包路径和本地临时路径 (本地路径) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n###### Image 的方法 @image-values \n\n###### onload(): void \\| null @onload\n图片加载完成事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### takeSnapshot(options: TakeSnapshotOptions): void @takesnapshot\n对当前组件进行截图,调用此方法会将当前组件(包含子节点)渲染结果导出成图片。\n成功会返回图片对应的临时文件路径,目前默认png格式\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | - |\n@| format | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### TakeSnapshotSuccess 的属性值 @takesnapshotsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n###### TakeSnapshotFail 的属性值 @takesnapshotfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n\n###### appendChild(aChild: UniElement): void @appendchild\n将一个元素添加到指定父元素的子元素列表的末尾处。如果将被插入的元素已经存在于当前文档的文档树中,那么将会它从原先的位置移动到新的位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n\n###### insertBefore(newChild: UniElement, refChild?: UniElement \\| null): UniElement \\| null @insertbefore\n在参考元素之前插入一个拥有指定父元素的子元素。如果给定的子元素是对文档中现有元素的引用,insertBefore() 会将其从当前位置移动到新位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| newChild | - |\n| refChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### setAttribute(key: string, value: string): void @setattribute\n设置指定元素上的某个属性值。如果设置的属性已经存在,则更新该属性值;否则使用指定的名称和值添加一个新的属性。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - |\n| value | - | \n\n\n###### getAttribute(key: string): string \\| null @getattribute\n获取元素指定的属性值,如果指定的属性不存在则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| string | 否 |\n \n\n###### hasAttribute(key: string): boolean @hasattribute\n返回改元素是否包含有指定的属性,属性存在则返回true,否则返回false。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n###### removeAttribute(key: string): void @removeattribute\n从元素中删除一个属性,如果指定的属性不存在,则不做任何操作,也不会产生错误。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n\n###### getBoundingClientRect(): DOMRect @getboundingclientrect\n获取元素的大小及其相对于窗口的位置信息。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [DOMRect](/dom/domrect.md) |\n \n\n###### getDrawableContext(): DrawableContext \\| null @getdrawablecontext\n获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [DrawableContext](/dom/drawablecontext.md) | 否 |\n \n\n###### removeChild(aChild: UniElement): UniElement \\| null @removechild\n从元素中删除一个子元素,返回删除的元素。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### remove(): void @remove\n把元素对象从它所属的 DOM 树中删除。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### scrollTo(x: number, y: number): void @scrollto\n使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### scrollBy(x: number, y: number): void @scrollby\n使得元素滚动一段特定距离 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### querySelector(selector: string.cssSelectorString): UniElement \\| null @queryselector\n返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### querySelectorAll(selector: string.cssSelectorString): UniElement[] \\| null @queryselectorall\n返回与指定的选择器组匹配的文档中的元素列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Array\\<[UniElement](/dom/unielement.md)\\> | 否 |\n \n\n###### focus(): void @focus\n使元素获取焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### blur(): void @blur\n使元素丢失焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### getIOSView(): UIView \\| null @getiosview\n获取元素ios原生view\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| UIView | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n获取元素android原生view 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getAndroidActivity(): Activity \\| null @getandroidactivity\n获取元素android原生activity 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Activity | 否 |\n \n\n###### getPage(): UniPage \\| null @getpage\n获取元素所属的页面对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n\n###### UniPage 的方法 @unipage-values \n\n###### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n###### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| $component | - |\n@| $disableEscBack | - |\n###### UniDialogPage 的方法 @unidialogpage-values \n\n###### on(eventName: string, callback: Function): void @on\n监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### once(eventName: string, callback: Function): void @once\n监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| | - | \n\n\n###### off(eventName: string, callback?: Function \\| null): void @off\n移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n\n\n###### emit(eventName: string, args: any \\| null): void @emit\n触发自定义事件,附加的参数会传递给事件监听器。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniDialogPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniDialogPage](#unidialogpage-values)\\> |\n \n \n \n \n\n#### createPath2D(): Path2D @createpath2d\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [Path2D](/api/path2d.md) |\n \n\n#### requestAnimationFrame(callback: RequestAnimationFrameCallback): number; @requestanimationframe\n在下一次重绘之前,调用用户提供的回调函数\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n\n#### cancelAnimationFrame(taskId: number): void; @cancelanimationframe\n取消一个先前通过调用 uni.requestAnimationFrame() 方法添加到计划中的动画帧请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| taskId | - | \n\n \n","tutorial":""},"general_type":{"name":"## 通用类型\n","param":""}} \ No newline at end of file +{"getApp":{"name":"## function getApp\\(): UniApp & { globalData: AppInstance\\\\['globalData'] vm: AppInstance\\ $vm: AppInstance\\ } @getapp","description":"`getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [UniApp](#uniapp-values) |\n\n#### UniApp 的方法 @uniapp-values \n\n#### getAndroidApplication(): Application @getandroidapplication\n获取 Android 应用 Application 上下文\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Application |\n \n \n","tutorial":""},"getCurrentPages":{"name":"## () => UniPage[\\] @getcurrentpages","description":"`getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n\n#### UniPage 的方法 @unipage-values \n\n#### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n#### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n#### getDialogPages(): UniPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n \n\n#### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n#### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### ~~$setPageStyle(style: UTSJSONObject): void~~ @$setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### ~~$getPageStyle(): UTSJSONObject~~ @$getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n \n","tutorial":""},"env":{"name":"## env","description":"环境变量","param":"### env 的属性值 @env-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| USER_DATA_PATH | - |\n| CACHE_PATH | - |\n| SANDBOX_PATH | - |\n| ANDROID_INTERNAL_SANDBOX_PATH | - |\n","compatibility":"","returnValue":"","tutorial":""},"$on":{"name":"## uni.$on(eventName, callback) @$on","description":"监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"$once":{"name":"## uni.$once(eventName, callback) @$once","description":"监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"$off":{"name":"## uni.$off(eventName, callback?) @$off","description":"移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。\n4.13+ 开始支持第二个参数为可选,如果仅提供事件名,则移除该事件的所有监听器。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| callback | - | \n","returnValue":"","tutorial":""},"$emit":{"name":"## uni.$emit(eventName, args?) @$emit","description":"触发自定义事件,附加的参数会传递给事件监听器。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| eventName | - |\n| args | - | \n","returnValue":"","tutorial":""},"base64ToArrayBuffer":{"name":"## uni.base64ToArrayBuffer(base64) @base64toarraybuffer","description":"将 Base64 字符串转成 ArrayBuffer 对象\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| base64 | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| ArrayBuffer |\n \n","tutorial":""},"arrayBufferToBase64":{"name":"## uni.arrayBufferToBase64(arrayBuffer) @arraybuffertobase64","description":"将 ArrayBuffer 对象转成 Base64 字符串\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| arrayBuffer | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n","tutorial":""},"addInterceptor":{"name":"## uni.addInterceptor(name, interceptor) @addinterceptor","description":"添加拦截器","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| interceptor | - | \n","returnValue":"","tutorial":""},"removeInterceptor":{"name":"## uni.removeInterceptor(name, interceptor?) @removeinterceptor","description":"删除拦截器","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| interceptor | - | \n","returnValue":"","tutorial":""},"getLaunchOptionsSync":{"name":"## uni.getLaunchOptionsSync() @getlaunchoptionssync","description":"获取首次启动时的参数。返回值与App.onLaunch的回调参数一致\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **OnLaunchOptions** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | HBuilderX 4.31 | \n","tutorial":""},"getEnterOptionsSync":{"name":"## uni.getEnterOptionsSync() @getenteroptionssync","description":"获取本次启动时的参数。返回值与App.onShow的回调参数一致\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **OnShowOptions** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | HBuilderX 4.31 | \n","tutorial":""},"exit":{"name":"## uni.exit(options?) @exit","description":"退出当前应用","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ExitSuccess 的属性值 @exitsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### IExitError 的属性值 @iexiterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getProviderSync":{"name":"## uni.getProviderSync(options) @getprovidersync","description":"getProvider的同步方法","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetProviderSyncSuccess** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| providerIds | HBuilderX 4.25 |\n@| providerObjects | HBuilderX 4.25 | \n","tutorial":""},"getProvider":{"name":"## uni.~~getProvider(options)~~ @getprovider","description":"获取服务供应商 **已废弃,4.25及以后版本请使用getProviderSync()方法代替**","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### IGetProviderFail 的属性值 @igetproviderfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getPerformance":{"name":"## uni.getPerformance() @getperformance","description":"返回一个Performance对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [Performance](#performance-values) |\n\n#### Performance 的方法 @performance-values \n\n#### createObserver(callback: PerformanceObserverCallback): PerformanceObserver @createobserver\n创建全局性能事件监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### PerformanceObserverEntryList 的方法 @performanceobserverentrylist-values \n\n##### getEntries(): PerformanceEntry[\\] @getentries\n该方法返回当前列表中的所有性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<**PerformanceEntry**\\> |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| entryType | - |\n@| name | - |\n@| duration | - |\n@| startTime | - |\n@| path | - |\n@| referrerPath | - |\n@| pageId | - |\n@| referrerPageId | - |\n@| navigationStart | - |\n@| navigationType | - |\n@| initDataRecvTime | - |\n@| viewLayerRenderEndTime | - | \n\n##### getEntriesByType(entryType: string): PerformanceEntry[\\] @getentriesbytype\n获取当前列表中所有类型为 \\[entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| entryType | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n##### getEntriesByName(name: string, entryType: string): PerformanceEntry[\\] @getentriesbyname\n获取当前列表中所有名称为 \\[name] 且类型为 [entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| entryType | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [PerformanceObserver](#performanceobserver-values) |\n\n###### PerformanceObserver 的方法 @performanceobserver-values \n\n###### observe(options: PerformanceObserverOptions): void @observe\n开始监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| buffered | - |\n@| entryTypes | - |\n@| type | - | \n\n\n###### disconnect(): void @disconnect\n停止监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n \n\n#### getEntries(): PerformanceEntry[\\] @getentries\n该方法返回当前缓冲区中的所有性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n#### getEntriesByType(entryType: string): PerformanceEntry[\\] @getentriesbytype\n获取当前缓冲区中所有类型为 \\[entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| entryType | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n#### getEntriesByName(name: string, entryType: string): PerformanceEntry[\\] @getentriesbyname\n获取当前缓冲区中所有名称为 \\[name] 且类型为 [entryType]的性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| entryType | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[PerformanceEntry](#performanceentry-values)\\> |\n \n\n#### setBufferSize(size: number): void @setbuffersize\n设置缓冲区大小,默认缓冲 30 条性能数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| size | - | \n\n \n","tutorial":""},"navigateTo":{"name":"## uni.navigateTo(options) @navigateto","description":"保留当前页面,跳转到应用内的某个页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| animationType | HBuilderX 4.23 |\n@| animationDuration | HBuilderX 4.23 |\n@| events | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### NavigateToFail 的属性值 @navigatetofail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"reLaunch":{"name":"## uni.reLaunch(options) @relaunch","description":"关闭所有页面,打开到应用内的某个页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### ReLaunchFail 的属性值 @relaunchfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"navigateBack":{"name":"## uni.navigateBack(options?) @navigateback","description":"关闭当前页面,返回上一页面或多级页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| delta | HBuilderX 4.23 |\n@| success | - |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### NavigateBackFail 的属性值 @navigatebackfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"redirectTo":{"name":"## uni.redirectTo(options) @redirectto","description":"关闭当前页面,跳转到应用内的某个页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### RedirectToFail 的属性值 @redirecttofail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"switchTab":{"name":"## uni.switchTab(options) @switchtab","description":"跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| success | HBuilderX 4.23 |\n@| fail | HBuilderX 4.23 |\n@| complete | HBuilderX 4.23 | \n\n#### SwitchTabFail 的属性值 @switchtabfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"openDialogPage":{"name":"## uni.openDialogPage(options) @opendialogpage","description":"打开模态弹窗页面","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### UniPage 的方法 @unipage-values \n\n#### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n#### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n#### getDialogPages(): UniPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n \n\n#### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n#### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### ~~$setPageStyle(style: UTSJSONObject): void~~ @$setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### ~~$getPageStyle(): UTSJSONObject~~ @$getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n#### OpenDialogPageFail 的属性值 @opendialogpagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n\n#### UniPage 的方法 @unipage-values \n\n#### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n#### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n#### getDialogPages(): UniPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n \n\n#### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n#### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n#### ~~$setPageStyle(style: UTSJSONObject): void~~ @$setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n#### ~~$getPageStyle(): UTSJSONObject~~ @$getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n \n","tutorial":""},"closeDialogPage":{"name":"## uni.closeDialogPage(options?) @closedialogpage","description":"关闭模态弹窗页面\r\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### CloseDialogPageFail 的属性值 @closedialogpagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| null |\n \n","tutorial":""},"setNavigationBarColor":{"name":"## uni.setNavigationBarColor(options) @setnavigationbarcolor","description":"设置导航条、状态栏颜色\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| frontColor | HBuilderX 4.23 |\n@| backgroundColor | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetNavigationBarColorFail 的属性值 @setnavigationbarcolorfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setNavigationBarTitle":{"name":"## uni.setNavigationBarTitle(options) @setnavigationbartitle","description":"动态设置当前页面的标题\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetNavigationBarTitleFail 的属性值 @setnavigationbartitlefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"showTabBar":{"name":"## uni.showTabBar(options?) @showtabbar","description":"显示 tabBar\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| animation | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"hideTabBar":{"name":"## uni.hideTabBar(options?) @hidetabbar","description":"隐藏 tabBar\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| animation | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"showTabBarRedDot":{"name":"## uni.showTabBarRedDot(options) @showtabbarreddot","description":"显示 tabBar 某一项的右上角的红点\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"hideTabBarRedDot":{"name":"## uni.hideTabBarRedDot(options) @hidetabbarreddot","description":"隐藏 tabBar 某一项的右上角的红点\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setTabBarBadge":{"name":"## uni.setTabBarBadge(options) @settabbarbadge","description":"为 tabBar 某一项的右上角添加文本\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| text | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"removeTabBarBadge":{"name":"## uni.removeTabBarBadge(options) @removetabbarbadge","description":"移除 tabBar 某一项右上角的文本\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setTabBarStyle":{"name":"## uni.setTabBarStyle(options) @settabbarstyle","description":"动态设置 tabBar 的整体样式\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| color | - |\n@| selectedColor | - |\n@| backgroundColor | - |\n@| backgroundImage | - |\n@| backgroundRepeat | - |\n@| borderColor | HBuilderX 4.23 |\n@| borderStyle | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"setTabBarItem":{"name":"## uni.setTabBarItem(options) @settabbaritem","description":"动态设置 tabBar 某一项的内容\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| index | - |\n@| text | - |\n@| iconPath | - |\n@| selectedIconPath | - |\n@| pagePath | - |\n@| iconfont | - |\n@| visible | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SetTabBarFail 的属性值 @settabbarfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"startPullDownRefresh":{"name":"## uni.startPullDownRefresh(options?) @startpulldownrefresh","description":"开始下拉刷新\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartPullDownRefreshFail 的属性值 @startpulldownrefreshfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"stopPullDownRefresh":{"name":"## uni.stopPullDownRefresh() @stoppulldownrefresh","description":"停止当前页面下拉刷新\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"pageScrollTo":{"name":"## uni.pageScrollTo(options) @pagescrollto","description":"将页面滚动到目标位置\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| scrollTop | - |\n@| selector | - |\n@| offsetTop | HBuilderX 4.23 |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### PageScrollToFail 的属性值 @pagescrolltofail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"onTabBarMidButtonTap":{"name":"## uni.onTabBarMidButtonTap(options) @ontabbarmidbuttontap","description":"监听中间按钮的点击事件","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"","tutorial":""},"getElementById":{"name":"## uni.getElementById(id) @getelementbyid","description":"返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n","tutorial":""},"createSelectorQuery":{"name":"## uni.createSelectorQuery() @createselectorquery","description":"返回一个SelectorQuery对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n\n#### SelectorQuery 的方法 @selectorquery-values \n\n#### in(component: any \\| null): SelectorQuery @in\n将选择器的选取范围更改为自定义组件component内\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| component | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n#### select(selector: string): NodesRef @select\n在当前页面下选择第一个匹配选择器selector的节点\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [NodesRef](#nodesref-values) |\n\n###### NodesRef 的方法 @nodesref-values \n\n###### boundingClientRect( callback: SelectorQueryNodeInfoCallback \\| null, ): SelectorQuery @boundingclientrect\n添加节点的布局位置的查询请求,相对于显示区域,以像素为单位\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### scrollOffset(callback: SelectorQueryNodeInfoCallback): SelectorQuery @scrolloffset\n添加节点的滚动位置查询请求,以像素为单位\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### fields( fields: NodeField, callback: SelectorQueryNodeInfoCallback \\| null, ): SelectorQuery @fields\n获取节点的相关信息,需要获取的字段在fields中指定\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| fields | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| dataset | - |\n@| rect | - |\n@| size | - |\n@| scrollOffset | - |\n@| properties | - |\n@| computedStyle | - |\n@| context | - |\n@| node | - |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### context(callback: SelectorQueryNodeInfoCallback): SelectorQuery @context\n添加节点的 Context 对象查询请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n\n###### node(callback: (result: any) => void): SelectorQuery @node\n获取 Node 节点实例。目前支持 Canvas 的获取。\n获取节点的相关信息,需要获取的字段在fields中指定\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SelectorQuery](#selectorquery-values) |\n \n \n\n#### selectAll(selector: string): NodesRef @selectall\n在当前页面下选择匹配选择器selector的所有节点\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [NodesRef](#nodesref-values) |\n \n\n#### selectViewport(): NodesRef @selectviewport\n选择显示区域\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [NodesRef](#nodesref-values) |\n \n\n#### exec(callback: (result: Array\\) => void \\| null): NodesRef \\| null @exec\n执行所有的请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [NodesRef](#nodesref-values) | 否 |\n \n \n","tutorial":""},"createIntersectionObserver":{"name":"## uni.createIntersectionObserver(component, options) @createintersectionobserver","description":"创建并返回一个 IntersectionObserver 对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| component | - |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| thresholds | - |\n@| initialRatio | - |\n@| observeAll | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [IntersectionObserver](#intersectionobserver-values) |\n\n#### IntersectionObserver 的方法 @intersectionobserver-values \n\n#### relativeTo(selector: string, margins?: any): IntersectionObserver; @relativeto\n使用选择器指定一个节点,作为参照区域之一\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - |\n| margins | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [IntersectionObserver](#intersectionobserver-values) |\n \n\n#### relativeToViewport(margins?: any): IntersectionObserver; @relativetoviewport\n指定页面显示区域作为参照区域之一\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| margins | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [IntersectionObserver](#intersectionobserver-values) |\n \n\n#### observe(targetSelector: string, callback: ObserveCallback): void; @observe\n指定目标节点并开始监听相交状态变化情况\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| targetSelector | - |\n| callback | - | \n\n##### ObserveResult 的属性值 @observeresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| intersectionRatio | - |\n| intersectionRect | - |\n| boundingClientRect | - |\n| relativeRect | - |\n| time | - |\n\n\n#### disconnect(): void; @disconnect\n停止监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n \n","tutorial":""},"showActionSheet":{"name":"## uni.showActionSheet(options) @showactionsheet","description":"从底部向上弹出操作菜单","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| alertText | - |\n@| itemList | - |\n@| itemColor | - |\n@| popover | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ShowActionSheetSuccess 的属性值 @showactionsheetsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tapIndex | - |\n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"showModal":{"name":"## uni.showModal(options) @showmodal","description":"显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| content | - |\n@| showCancel | - |\n@| cancelText | - |\n@| cancelColor | - |\n@| confirmText | - |\n@| confirmColor | - |\n@| editable | - |\n@| placeholderText | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ShowModalSuccess 的属性值 @showmodalsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| confirm | - |\n| cancel | - |\n| content | - |\n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"showLoading":{"name":"## uni.showLoading(options) @showloading","description":"显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| mask | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideLoading":{"name":"## uni.hideLoading() @hideloading","description":"隐藏 loading 提示框。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"showToast":{"name":"## uni.showToast(options) @showtoast","description":"显示消息提示框","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| title | - |\n@| icon | - |\n@| image | - |\n@| mask | - |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IPromptError 的属性值 @iprompterror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideToast":{"name":"## uni.hideToast() @hidetoast","description":"隐藏消息提示框。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"","tutorial":""},"loadFontFace":{"name":"## uni.loadFontFace(options) @loadfontface","description":"动态加载网络字体\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| global | - |\n@| family | - |\n@| source | - |\n@| desc | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### LoadFontFaceFail 的属性值 @loadfontfacefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n#### AsyncApiResult 的属性值 @asyncapiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Promise\\ | 否 |\n \n","tutorial":""},"rpx2px":{"name":"## uni.rpx2px(number) @rpx2px","description":"将rpx单位值转换成px","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| number | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"setAppTheme":{"name":"## uni.setAppTheme(options) @setapptheme","description":"设置应用主题","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | x | \n\n#### SetAppThemeSuccessResult 的属性值 @setappthemesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| theme | - |\n\n#### IAppThemeFail 的属性值 @iappthemefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onOsThemeChange":{"name":"## uni.onOsThemeChange(callback) @onosthemechange","description":"开启监听系统主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"offOsThemeChange":{"name":"## uni.offOsThemeChange(id) @offosthemechange","description":"取消监听系统主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n","returnValue":"","tutorial":""},"onAppThemeChange":{"name":"## uni.onAppThemeChange(callback) @onappthemechange","description":"开启监听应用主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n","tutorial":""},"offAppThemeChange":{"name":"## uni.offAppThemeChange(id) @offappthemechange","description":"取消监听应用主题变化","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n","returnValue":"","tutorial":""},"onThemeChange":{"name":"## uni.onThemeChange(callback) @onthemechange","description":"监听系统主题状态变化。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnThemeChangeCallbackResult 的属性值 @onthemechangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| theme | - |\n","returnValue":"","tutorial":""},"offThemeChange":{"name":"## uni.offThemeChange(callback) @offthemechange","description":"取消监听系统主题状态变化。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OffThemeChangeCallbackResult 的属性值 @offthemechangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| theme | - |\n","returnValue":"","tutorial":""},"getLocale":{"name":"## uni.getLocale() @getlocale","description":"获取当前设置的语言\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n","tutorial":""},"setLocale":{"name":"## uni.setLocale(locale) @setlocale","description":"设置当前语言\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| locale | - | \n","returnValue":"","tutorial":""},"onLocaleChange":{"name":"## uni.onLocaleChange(callback) @onlocalechange","description":"设置当前语言\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnLocaleChangeCallbackResult 的属性值 @onlocalechangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| locale | - |\n","returnValue":"","tutorial":""},"request":{"name":"## uni.request(param) @request","description":"发起网络请求。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| param | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| data | HBuilderX 4.23 |\n@| header | HBuilderX 4.23 |\n@| method | HBuilderX 4.23 |\n@| timeout | - |\n@| withCredentials | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### RequestSuccess\\ 的属性值 @requestsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n| statusCode | HBuilderX 4.23 |\n| header | HBuilderX 4.23 |\n| cookies | HBuilderX 4.23 |\n\n#### RequestFail 的属性值 @requestfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RequestTask](#requesttask-values) |\n\n#### RequestTask 的方法 @requesttask-values \n\n#### abort(): void @abort\n中断网络请求。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n \n","tutorial":""},"uploadFile":{"name":"## uni.uploadFile(options) @uploadfile","description":"将本地资源上传到开发者服务器。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| filePath | HBuilderX 4.23 |\n@| name | HBuilderX 4.23 |\n@| files | HBuilderX 4.23 |\n@| header | HBuilderX 4.23 |\n@| formData | HBuilderX 4.23 |\n@| timeout | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UploadFileSuccess 的属性值 @uploadfilesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n| statusCode | HBuilderX 4.23 |\n\n#### UploadFileFail 的属性值 @uploadfilefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [UploadTask](#uploadtask-values) |\n\n#### UploadTask 的方法 @uploadtask-values \n\n#### abort(): void, @abort\n中断上传任务。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### onProgressUpdate(callback: UploadFileProgressUpdateCallback): void, @onprogressupdate\n监听上传进度变化。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnProgressUpdateResult 的属性值 @onprogressupdateresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| progress | HBuilderX 4.23 |\n| totalBytesSent | HBuilderX 4.23 |\n| totalBytesExpectedToSend | HBuilderX 4.23 |\n\n \n","tutorial":""},"downloadFile":{"name":"## uni.downloadFile(options) @downloadfile","description":"下载文件资源到本地,客户端直接发起一个 HTTP GET 请求,返回文件的本地临时路径。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| header | - |\n@| filePath | HBuilderX 4.23 |\n@| timeout | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### DownloadFileSuccess 的属性值 @downloadfilesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | HBuilderX 4.23 |\n| statusCode | HBuilderX 4.23 |\n\n#### DownloadFileFail 的属性值 @downloadfilefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [DownloadTask](#downloadtask-values) |\n\n#### DownloadTask 的方法 @downloadtask-values \n\n#### abort(): void, @abort\n中断下载任务\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### onProgressUpdate(callback: DownloadFileProgressUpdateCallback): void, @onprogressupdate\n监听下载进度变化。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnProgressDownloadResult 的属性值 @onprogressdownloadresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| progress | HBuilderX 4.23 |\n| totalBytesWritten | HBuilderX 4.23 |\n| totalBytesExpectedToWrite | HBuilderX 4.23 |\n\n \n","tutorial":""},"getNetworkType":{"name":"## uni.getNetworkType(options) @getnetworktype","description":"获取网络类型","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetNetworkTypeSuccess 的属性值 @getnetworktypesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| networkType | - |\n","returnValue":"","tutorial":""},"connectSocket":{"name":"## uni.connectSocket(options) @connectsocket","description":"创建一个 WebSocket 连接。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| url | HBuilderX 4.23 |\n@| header | HBuilderX 4.23 |\n@| protocols | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ConnectSocketSuccess 的属性值 @connectsocketsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### ConnectSocketFail 的属性值 @connectsocketfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [SocketTask](#sockettask-values) |\n\n#### SocketTask 的方法 @sockettask-values \n\n#### send(options: SendSocketMessageOptions): void; @send\n通过 WebSocket 连接发送数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| data | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### SendSocketMessageFail 的属性值 @sendsocketmessagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### close(options: CloseSocketOptions): void; @close\n关闭 WebSocket 连接\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| code | HBuilderX 4.23 |\n@| reason | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### onOpen(callback: (result: OnSocketOpenCallbackResult) => void): void; @onopen\n监听 WebSocket 连接打开事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnSocketOpenCallbackResult 的属性值 @onsocketopencallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| header | HBuilderX 4.23 |\n\n\n#### onClose(callback: (result: any) => void): void; @onclose\n监听 WebSocket 连接关闭事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback: (result: GeneralCallbackResult) => void): void; @onerror\n监听 WebSocket 错误\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onMessage(callback: (result: OnSocketMessageCallbackResult) => void): void; @onmessage\n监听 WebSocket 接受到服务器的消息事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### OnSocketMessageCallbackResult 的属性值 @onsocketmessagecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n\n \n","tutorial":""},"onSocketOpen":{"name":"## uni.onSocketOpen(options) @onsocketopen","description":"监听WebSocket连接打开事件。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"","tutorial":""},"onSocketError":{"name":"## uni.onSocketError(callback) @onsocketerror","description":"监听WebSocket错误。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnSocketErrorCallbackResult 的属性值 @onsocketerrorcallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"","tutorial":""},"sendSocketMessage":{"name":"## uni.sendSocketMessage(options) @sendsocketmessage","description":"通过 WebSocket 连接发送数据,需要先 uni.connectSocket,并在 uni.onSocketOpen 回调之后才能发送。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| data | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SendSocketMessageFail 的属性值 @sendsocketmessagefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onSocketMessage":{"name":"## uni.onSocketMessage(callback) @onsocketmessage","description":"监听WebSocket接受到服务器的消息事件。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnSocketMessageCallbackResult 的属性值 @onsocketmessagecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.23 |\n","returnValue":"","tutorial":""},"closeSocket":{"name":"## uni.closeSocket(options) @closesocket","description":"关闭 WebSocket 连接。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| code | HBuilderX 4.23 |\n@| reason | HBuilderX 4.23 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"onSocketClose":{"name":"## uni.onSocketClose(callback) @onsocketclose","description":"监听WebSocket关闭。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnSocketCloseCallbackResult 的属性值 @onsocketclosecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| code | HBuilderX 4.23 |\n| reason | HBuilderX 4.23 |\n","returnValue":"","tutorial":""},"onNetworkStatusChange":{"name":"## uni.onNetworkStatusChange(callback) @onnetworkstatuschange","description":"监听网络状态变化\r\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnNetworkStatusChangeCallbackResult 的属性值 @onnetworkstatuschangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isConnected | - |\n| networkType | - |\n","returnValue":"","tutorial":""},"offNetworkStatusChange":{"name":"## uni.offNetworkStatusChange(callback) @offnetworkstatuschange","description":"取消监听网络状态变化\r\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.24 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"getSystemInfo":{"name":"## uni.getSystemInfo(options) @getsysteminfo","description":"异步获取系统信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetSystemInfoResult 的属性值 @getsysteminforesult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| appId | HBuilderX 4.23 |\n| appLanguage | HBuilderX 4.23 |\n| appName | HBuilderX 4.23 |\n| appVersion | HBuilderX 4.23 |\n| appVersionCode | HBuilderX 4.23 |\n| appWgtVersion | HBuilderX 4.23 |\n| browserName | x |\n| browserVersion | x |\n| deviceId | HBuilderX 4.23 |\n| deviceBrand | HBuilderX 4.23 |\n| deviceModel | HBuilderX 4.23 |\n| deviceType | HBuilderX 4.23 |\n| devicePixelRatio | HBuilderX 4.23 |\n| deviceOrientation | HBuilderX 4.23 |\n| osName | HBuilderX 4.23 |\n| osVersion | HBuilderX 4.23 |\n| osLanguage | HBuilderX 4.23 |\n| osTheme | HBuilderX 4.23 |\n| screenWidth | HBuilderX 4.23 |\n| screenHeight | HBuilderX 4.23 |\n| statusBarHeight | HBuilderX 4.23 |\n| safeArea | HBuilderX 4.23 |\n| safeAreaInsets | HBuilderX 4.23 |\n| ua | x |\n| uniCompilerVersion | HBuilderX 4.23 |\n| uniPlatform | HBuilderX 4.23 |\n| uniRuntimeVersion | HBuilderX 4.23 |\n| uniCompilerVersionCode | HBuilderX 4.23 |\n| uniRuntimeVersionCode | HBuilderX 4.23 |\n| romName | HBuilderX 4.23 |\n| romVersion | HBuilderX 4.23 |\n| windowWidth | HBuilderX 4.23 |\n| windowHeight | HBuilderX 4.23 |\n| windowTop | HBuilderX 4.23 |\n| windowBottom | HBuilderX 4.23 |\n| appTheme | HBuilderX 4.23 |\n| version | x |\n| uniCompileVersionCode | x |\n| uniCompileVersion | x |\n| system | HBuilderX 4.23 |\n| platform | x |\n| pixelRatio | x |\n| model | x |\n| language | x |\n| brand | HBuilderX 4.23 |\n","returnValue":"","tutorial":""},"getSystemInfoSync":{"name":"## uni.getSystemInfoSync() @getsysteminfosync","description":"同步获取系统信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetSystemInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| appId | HBuilderX 4.23 |\n@| appLanguage | HBuilderX 4.23 |\n@| appName | HBuilderX 4.23 |\n@| appVersion | HBuilderX 4.23 |\n@| appVersionCode | HBuilderX 4.23 |\n@| appWgtVersion | HBuilderX 4.23 |\n@| browserName | x |\n@| browserVersion | x |\n@| deviceId | HBuilderX 4.23 |\n@| deviceBrand | HBuilderX 4.23 |\n@| deviceModel | HBuilderX 4.23 |\n@| deviceType | HBuilderX 4.23 |\n@| devicePixelRatio | HBuilderX 4.23 |\n@| deviceOrientation | HBuilderX 4.23 |\n@| osName | HBuilderX 4.23 |\n@| osVersion | HBuilderX 4.23 |\n@| osLanguage | HBuilderX 4.23 |\n@| osTheme | HBuilderX 4.23 |\n@| screenWidth | HBuilderX 4.23 |\n@| screenHeight | HBuilderX 4.23 |\n@| statusBarHeight | HBuilderX 4.23 |\n@| safeArea | HBuilderX 4.23 |\n@| safeAreaInsets | HBuilderX 4.23 |\n@| ua | x |\n@| uniCompilerVersion | HBuilderX 4.23 |\n@| uniPlatform | HBuilderX 4.23 |\n@| uniRuntimeVersion | HBuilderX 4.23 |\n@| uniCompilerVersionCode | HBuilderX 4.23 |\n@| uniRuntimeVersionCode | HBuilderX 4.23 |\n@| romName | HBuilderX 4.23 |\n@| romVersion | HBuilderX 4.23 |\n@| windowWidth | HBuilderX 4.23 |\n@| windowHeight | HBuilderX 4.23 |\n@| windowTop | HBuilderX 4.23 |\n@| windowBottom | HBuilderX 4.23 |\n@| appTheme | HBuilderX 4.23 |\n@| version | x |\n@| uniCompileVersionCode | x |\n@| uniCompileVersion | x |\n@| system | HBuilderX 4.23 |\n@| platform | x |\n@| pixelRatio | x |\n@| model | x |\n@| language | x |\n@| brand | HBuilderX 4.23 | \n","tutorial":""},"getDeviceInfo":{"name":"## uni.getDeviceInfo(options?) @getdeviceinfo","description":"获取设备信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filter | x | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetDeviceInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| deviceBrand | HBuilderX 4.23 |\n@| deviceId | HBuilderX 4.23 |\n@| deviceModel | HBuilderX 4.23 |\n@| deviceType | HBuilderX 4.23 |\n@| deviceOrientation | HBuilderX 4.23 |\n@| devicePixelRatio | HBuilderX 4.23 |\n@| system | HBuilderX 4.23 |\n@| platform | HBuilderX 4.23 |\n@| osName | HBuilderX 4.23 |\n@| osVersion | HBuilderX 4.23 |\n@| osLanguage | HBuilderX 4.23 |\n@| osTheme | HBuilderX 4.23 |\n@| romName | HBuilderX 4.23 |\n@| romVersion | HBuilderX 4.23 |\n@| model | x | \n","tutorial":""},"getWindowInfo":{"name":"## uni.getWindowInfo() @getwindowinfo","description":"同步获取窗口信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| **GetWindowInfoResult** | result |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| pixelRatio | HBuilderX 4.23 |\n@| screenWidth | HBuilderX 4.23 |\n@| screenHeight | HBuilderX 4.23 |\n@| windowWidth | HBuilderX 4.23 |\n@| windowHeight | HBuilderX 4.23 |\n@| statusBarHeight | HBuilderX 4.23 |\n@| windowTop | HBuilderX 4.23 |\n@| windowBottom | HBuilderX 4.23 |\n@| safeArea | HBuilderX 4.23 |\n@| safeAreaInsets | HBuilderX 4.23 |\n@| screenTop | HBuilderX 4.23 | \n","tutorial":""},"getAppBaseInfo":{"name":"## uni.getAppBaseInfo(options?) @getappbaseinfo","description":"获取app基本信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filter | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetAppBaseInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| appId | HBuilderX 4.23 |\n@| appName | HBuilderX 4.23 |\n@| appVersion | HBuilderX 4.23 |\n@| appVersionCode | HBuilderX 4.23 |\n@| appLanguage | HBuilderX 4.23 |\n@| language | x |\n@| appWgtVersion | HBuilderX 4.23 |\n@| hostLanguage | HBuilderX 4.23 |\n@| isUniAppX | HBuilderX 4.23 |\n@| uniCompilerVersion | HBuilderX 4.23 |\n@| uniPlatform | HBuilderX 4.23 |\n@| uniRuntimeVersionCode | HBuilderX 4.23 |\n@| packageName | HBuilderX 4.23 |\n@| appTheme | HBuilderX 4.23 |\n@| version | HBuilderX 4.23 | \n","tutorial":""},"getAppAuthorizeSetting":{"name":"## uni.getAppAuthorizeSetting() @getappauthorizesetting","description":"获取 APP 授权设置。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetAppAuthorizeSettingResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| albumAuthorized | - |\n@| bluetoothAuthorized | - |\n@| cameraAuthorized | - |\n@| locationAuthorized | - |\n@| locationAccuracy | - |\n@| locationReducedAccuracy | - |\n@| microphoneAuthorized | - |\n@| notificationAuthorized | - |\n@| notificationAlertAuthorized | - |\n@| notificationBadgeAuthorized | - |\n@| notificationSoundAuthorized | - |\n@| phoneCalendarAuthorized | x | \n","tutorial":""},"getSystemSetting":{"name":"## uni.getSystemSetting() @getsystemsetting","description":"获取系统设置","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetSystemSettingResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| bluetoothEnabled | HBuilderX 4.25 |\n@| bluetoothError | HBuilderX 4.25 |\n@| locationEnabled | HBuilderX 4.25 |\n@| wifiEnabled | HBuilderX 4.25 |\n@| wifiError | HBuilderX 4.25 |\n@| deviceOrientation | HBuilderX 4.25 | \n","tutorial":""},"installApk":{"name":"## uni.installApk(options) @installapk","description":"安装apk","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### InstallApkSuccess 的属性值 @installapksuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### InstallApkFail 的属性值 @installapkfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getBatteryInfo":{"name":"## uni.getBatteryInfo(options) @getbatteryinfo","description":"获取电池电量信息\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-getbatteryinfo](https://ext.dcloud.net.cn/plugin?name=uni-getbatteryinfo)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetBatteryInfoSuccess 的属性值 @getbatteryinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| level | - |\n| isCharging | - |\n","returnValue":"","tutorial":""},"getBatteryInfoSync":{"name":"## uni.getBatteryInfoSync() @getbatteryinfosync","description":"同步获取电池电量信息\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-getbatteryinfo](https://ext.dcloud.net.cn/plugin?name=uni-getbatteryinfo)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **GetBatteryInfoResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| level | - |\n@| isCharging | - | \n","tutorial":""},"makePhoneCall":{"name":"## uni.makePhoneCall(options) @makephonecall","description":"拨打电话\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| phoneNumber | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"getClipboardData":{"name":"## uni.getClipboardData(options) @getclipboarddata","description":"获得系统剪贴板的内容\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetClipboardDataSuccess 的属性值 @getclipboarddatasuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n","returnValue":"","tutorial":""},"setClipboardData":{"name":"## uni.setClipboardData(options) @setclipboarddata","description":"设置系统剪贴板的内容\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| data | - |\n@| showToast | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"onCompassChange":{"name":"## uni.onCompassChange(callback) @oncompasschange","description":"监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnCompassChangeSuccess 的属性值 @oncompasschangesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | - |\n","returnValue":"","tutorial":""},"offCompassChange":{"name":"## uni.offCompassChange(callback) @offcompasschange","description":"取消监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"startCompass":{"name":"## uni.startCompass(options?) @startcompass","description":"开始监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ICompassError 的属性值 @icompasserror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"stopCompass":{"name":"## uni.stopCompass(options?) @stopcompass","description":"停止监听罗盘数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ICompassError 的属性值 @icompasserror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onAccelerometerChange":{"name":"## uni.onAccelerometerChange(callback) @onaccelerometerchange","description":"监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnAccelerometerChangeCallbackResult 的属性值 @onaccelerometerchangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - |\n| z | - |\n","returnValue":"","tutorial":""},"offAccelerometerChange":{"name":"## uni.offAccelerometerChange(callback) @offaccelerometerchange","description":"取消监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"startAccelerometer":{"name":"## uni.startAccelerometer(options) @startaccelerometer","description":"开始监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| interval | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"stopAccelerometer":{"name":"## uni.stopAccelerometer(options) @stopaccelerometer","description":"停止监听加速度数据\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"startWifi":{"name":"## uni.startWifi(option) @startwifi","description":"初始化Wi-Fi模块\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"stopWifi":{"name":"## uni.stopWifi(option) @stopwifi","description":"关闭 Wi-Fi 模块\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"connectWifi":{"name":"## uni.connectWifi(option) @connectwifi","description":"","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| SSID | - |\n@| BSSID | - |\n@| password | - |\n@| maunal | - |\n@| partialInfo | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"getWifiList":{"name":"## uni.getWifiList(option) @getwifilist","description":"请求获取 Wi-Fi 列表。wifiList 数据会在 onGetWifiList 注册的回调中返回。\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onGetWifiList":{"name":"## uni.onGetWifiList(callback) @ongetwifilist","description":"监听获取到 Wi-Fi 列表数据事件。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"offGetWifiList":{"name":"## uni.offGetWifiList(callback) @offgetwifilist","description":"移除获取到 Wi-Fi 列表数据事件的监听函数。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"getConnectedWifi":{"name":"## uni.getConnectedWifi(option) @getconnectedwifi","description":"获取已连接的 Wi-Fi 信息\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| partialInfo | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onWifiConnected":{"name":"## uni.onWifiConnected(callback) @onwificonnected","description":"监听连接上 Wi-Fi 的事件\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onWifiConnectedWithPartialInfo":{"name":"## uni.onWifiConnectedWithPartialInfo(callback) @onwificonnectedwithpartialinfo","description":"监听连接上 Wi-Fi 的事件。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### UniWifiInfoWithPartialInfo 的属性值 @uniwifiinfowithpartialinfo-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| SSID | - |\n","returnValue":"","tutorial":""},"offWifiConnected":{"name":"## uni.offWifiConnected(callback?) @offwificonnected","description":"移除连接上 Wi-Fi 的事件的监听函数。\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"setWifiList":{"name":"## uni.setWifiList(option) @setwifilist","description":"SetWifiList 暂未实现\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-wifi](https://ext.dcloud.net.cn/plugin?name=uni-wifi)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### UniWifiResult 的属性值 @uniwifiresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| wifi | - |\n","returnValue":"","tutorial":""},"onMemoryWarning":{"name":"## uni.onMemoryWarning(callback) @onmemorywarning","description":"监听内存不足告警事件。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnMemoryWarningCallbackResult 的属性值 @onmemorywarningcallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| level | - |\n","returnValue":"","tutorial":""},"offMemoryWarning":{"name":"## uni.offMemoryWarning(callback) @offmemorywarning","description":"取消监听内存不足告警事件。不传入 callback 则取消所有监听。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OffMemoryWarningCallbackResult 的属性值 @offmemorywarningcallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| level | - |\n","returnValue":"","tutorial":""},"onUserCaptureScreen":{"name":"## uni.onUserCaptureScreen(callback?) @onusercapturescreen","description":"开启截屏监听\r\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-usercapturescreen](https://ext.dcloud.net.cn/plugin?name=uni-usercapturescreen)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnUserCaptureScreenCallbackResult 的属性值 @onusercapturescreencallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n","returnValue":"","tutorial":""},"offUserCaptureScreen":{"name":"## uni.offUserCaptureScreen(callback?) @offusercapturescreen","description":"关闭截屏监听\r\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-usercapturescreen](https://ext.dcloud.net.cn/plugin?name=uni-usercapturescreen)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnUserCaptureScreenCallbackResult 的属性值 @onusercapturescreencallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n","returnValue":"","tutorial":""},"createRequestPermissionListener":{"name":"## uni.createRequestPermissionListener() @createrequestpermissionlistener","description":"创建一个监听权限申请的对象。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RequestPermissionListener](#requestpermissionlistener-values) |\n\n#### RequestPermissionListener 的方法 @requestpermissionlistener-values \n\n#### onRequest(callback : RequestPermissionListenerRequestCallback) : void @onrequest\n监听申请系统权限\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onConfirm(callback : RequestPermissionListenerConfirmCallback) : void @onconfirm\n监听弹出系统权限授权框\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onComplete(callback : RequestPermissionListenerCompleteCallback) : void @oncomplete\n监听权限申请完成\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### stop() : void @stop\n取消所有监听\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n \n","tutorial":""},"scanCode":{"name":"## uni.scanCode(options?) @scancode","description":"扫码","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| onlyFromCamera | - |\n@| scanType | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ScanCodeSuccess 的属性值 @scancodesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| result | - |\n| scanType | - |\n","returnValue":"","tutorial":""},"addPhoneContact":{"name":"## uni.addPhoneContact(options) @addphonecontact","description":"手机通讯录联系人和联系方式的增加","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| photoFilePath | - |\n@| nickName | - |\n@| lastName | - |\n@| middleName | - |\n@| firstName | - |\n@| remark | - |\n@| mobilePhoneNumber | - |\n@| weChatNumber | - |\n@| addressCountry | - |\n@| addressState | - |\n@| addressCity | - |\n@| addressStreet | - |\n@| addressPostalCode | - |\n@| organization | - |\n@| title | - |\n@| workFaxNumber | - |\n@| workPhoneNumber | - |\n@| hostNumber | - |\n@| email | - |\n@| url | - |\n@| workAddressCountry | - |\n@| workAddressState | - |\n@| workAddressCity | - |\n@| workAddressStreet | - |\n@| workAddressPostalCode | - |\n@| homeFaxNumber | - |\n@| homePhoneNumber | - |\n@| homeAddressCountry | - |\n@| homeAddressState | - |\n@| homeAddressCity | - |\n@| homeAddressStreet | - |\n@| homeAddressPostalCode | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"openAppAuthorizeSetting":{"name":"## uni.openAppAuthorizeSetting(options) @openappauthorizesetting","description":"跳转系统授权管理页","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### OpenAppAuthorizeSettingSuccess 的属性值 @openappauthorizesettingsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### OpenAppAuthorizeSettingFail 的属性值 @openappauthorizesettingfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### OpenAppAuthorizeSettingComplete 的属性值 @openappauthorizesettingcomplete-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n","returnValue":"","tutorial":""},"showNavigationBarLoading":{"name":"## uni.showNavigationBarLoading(options?) @shownavigationbarloading","description":"在当前页面显示导航条加载动画\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.28 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ShowNavigationBarLoadingFail 的属性值 @shownavigationbarloadingfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideNavigationBarLoading":{"name":"## uni.hideNavigationBarLoading(options?) @hidenavigationbarloading","description":"隐藏导航条加载动画\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.28 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### HideNavigationBarLoadingFail 的属性值 @hidenavigationbarloadingfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"hideKeyboard":{"name":"## uni.hideKeyboard(options?) @hidekeyboard","description":"隐藏键盘","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"getRecorderManager":{"name":"## uni.getRecorderManager() @getrecordermanager","description":"录音管理\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RecorderManager](#recordermanager-values) |\n\n#### RecorderManager 的方法 @recordermanager-values \n\n#### start(options: RecorderManagerStartOptions): void; @start\n开始录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| duration | - |\n@| sampleRate | - |\n@| numberOfChannels | - |\n@| encodeBitRate | - |\n@| format | - |\n@| frameSize | - | \n\n\n#### pause(): void; @pause\n暂停录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### resume(): void; @resume\n暂停录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### stop(): void; @stop\n停止录音\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### onStart(options: (result: any) => void): void; @onstart\n录音开始事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### onPause(options: (result: any) => void): void; @onpause\n录音暂停事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### onStop(options: (result: RecorderManagerOnStopResult) => void): void; @onstop\n录音停止事件,会回调文件地址\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n##### RecorderManagerOnStopResult 的属性值 @recordermanageronstopresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n\n#### onFrameRecorded(options: (result: any) => void): void; @onframerecorded\n已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### onError(options: (result: any) => void): void; @onerror\n录音错误事件, 会回调错误信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### (options: (result: any) => void) => void @onresume\n监听录音继续事件\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### (options: (result: any) => void) => void @oninterruptionbegin\n监听录音因为受到系统占用而被中断开始事件\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n\n#### (options: (result: any) => void) => void @oninterruptionend\n监听录音中断结束事件\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n \n","tutorial":""},"startSoterAuthentication":{"name":"## uni.startSoterAuthentication(options) @startsoterauthentication","description":"开始 SOTER 生物认证\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| requestAuthModes | - |\n@| challenge | - |\n@| authContent | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartSoterAuthenticationSuccess 的属性值 @startsoterauthenticationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| authMode | - |\n| resultJSON | - |\n| resultJSONSignature | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"checkIsSupportSoterAuthentication":{"name":"## uni.checkIsSupportSoterAuthentication(options) @checkissupportsoterauthentication","description":"获取本机支持的 SOTER 生物认证方式\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CheckIsSupportSoterAuthenticationSuccess 的属性值 @checkissupportsoterauthenticationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| supportMode | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"checkIsSoterEnrolledInDevice":{"name":"## uni.checkIsSoterEnrolledInDevice(options) @checkissoterenrolledindevice","description":"获取设备内是否录入如指纹等生物信息\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| checkAuthMode | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CheckIsSoterEnrolledInDeviceSuccess 的属性值 @checkissoterenrolledindevicesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isEnrolled | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"setUserCaptureScreen":{"name":"## uni.setUserCaptureScreen(options) @setusercapturescreen","description":"设置防截屏\r\n\n\n> 本 API 是 [uni ext api](https://uniapp.dcloud.net.cn/api/extapi.html),需下载插件:[uni-usercapturescreen](https://ext.dcloud.net.cn/plugin?name=uni-usercapturescreen)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| enable | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"shareWithSystem":{"name":"## uni.shareWithSystem(options) @sharewithsystem","description":"uni.shareWithSystem函数定义\n使用系统分享。harmonyOS\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| summary | - |\n@| href | - |\n@| imageUrl | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"login":{"name":"## uni.login(options) @login","description":"登录\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.27 |\n@| scopes | - |\n@| timeout | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### LoginSuccess 的属性值 @loginsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| authResult | - |\n| code | - |\n| anonymousCode | - |\n| authCode | - |\n| authErrorScope | - |\n| authSucessScope | - |\n| appleInfo | - |\n\n#### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getUserInfo":{"name":"## uni.getUserInfo(options) @getuserinfo","description":"获取用户信息\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.27 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetUserInfoSuccess 的属性值 @getuserinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| userInfo | HBuilderX 4.27 |\n| errMsg | - |\n\n#### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseImage":{"name":"## uni.chooseImage(options) @chooseimage","description":"从本地相册选择图片或使用相机拍照","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| count | - |\n@| sizeType | HBuilderX 4.23 |\n@| sourceType | - |\n@| extension | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseImageSuccess 的属性值 @chooseimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| errMsg | - |\n| tempFilePaths | - |\n| tempFiles | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"previewImage":{"name":"## uni.previewImage(options) @previewimage","description":"预览图片","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| current | - |\n@| urls | - |\n@| showmenu | HBuilderX 4.23 |\n@| indicator | x |\n@| loop | - |\n@| longPressActions | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n##### LongPressActionsSuccessData 的属性值 @longpressactionssuccessdata-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tapIndex | - |\n| index | - |\n\n#### PreviewImageSuccess 的属性值 @previewimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| errMsg | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"closePreviewImage":{"name":"## uni.closePreviewImage(options) @closepreviewimage","description":"关闭图片预览","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ClosePreviewImageSuccess 的属性值 @closepreviewimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"saveImageToPhotosAlbum":{"name":"## uni.saveImageToPhotosAlbum(options) @saveimagetophotosalbum","description":"保存图片到系统相册","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### SaveImageToPhotosAlbumSuccess 的属性值 @saveimagetophotosalbumsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getImageInfo":{"name":"## uni.getImageInfo(options) @getimageinfo","description":"获取图片信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetImageInfoSuccess 的属性值 @getimageinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| width | - |\n| height | - |\n| path | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"compressImage":{"name":"## uni.compressImage(options) @compressimage","description":"压缩图片","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| quality | - |\n@| rotate | - |\n@| compressedHeight | - |\n@| compressedWidth | - |\n@| success | - |\n@| fail | - |\n@| complete | - |\n@| height | - |\n@| width | - | \n\n#### CompressImageSuccess 的属性值 @compressimagesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseVideo":{"name":"## uni.chooseVideo(options) @choosevideo","description":"拍摄视频或从手机相册中选视频,返回视频的临时文件路径。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| sourceType | - |\n@| maxDuration | HBuilderX 4.25 |\n@| camera | HBuilderX 4.25 |\n@| extension | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseVideoSuccess 的属性值 @choosevideosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n| duration | - |\n| size | - |\n| height | - |\n| width | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"saveVideoToPhotosAlbum":{"name":"## uni.saveVideoToPhotosAlbum(options) @savevideotophotosalbum","description":"保存视频到系统相册","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getVideoInfo":{"name":"## uni.getVideoInfo(options) @getvideoinfo","description":"获取视频详细信息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetVideoInfoSuccess 的属性值 @getvideoinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| orientation | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| duration | - |\n| size | - |\n| height | - |\n| width | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"compressVideo":{"name":"## uni.compressVideo(options) @compressvideo","description":"压缩视频","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n@| quality | - |\n@| bitrate | - |\n@| fps | - |\n@| resolution | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CompressVideoSuccess 的属性值 @compressvideosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n| size | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"createInnerAudioContext":{"name":"## uni.createInnerAudioContext() @createinneraudiocontext","description":"创建并返回 audio 上下文 audioContext 对象\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [InnerAudioContext](#inneraudiocontext-values) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| duration | - |\n@| currentTime | - |\n@| paused | - |\n@| src | - |\n@| startTime | - |\n@| buffered | - |\n@| autoplay | - |\n@| loop | - |\n@| obeyMuteSwitch | - |\n@| volume | - |\n@| playbackRate | - |\n#### InnerAudioContext 的方法 @inneraudiocontext-values \n\n#### pause(): void; @pause\n暂停\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### stop(): void; @stop\n停止\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### play(): void; @play\n播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### seek(position: number): void; @seek\n跳转到指定位置,单位 s\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| position | - | \n\n\n#### destroy(): void; @destroy\n销毁当前实例\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n\n\n#### onCanplay(callback: (result: any) => void): void; @oncanplay\n音频进入可以播放状态,但不保证后面可以流畅播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPlay(callback: (result: any) => void): void; @onplay\n音频播放事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPause(callback: (result: any) => void): void; @onpause\n音频暂停事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onStop(callback: (result: any) => void): void; @onstop\n音频停止事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onEnded(callback: (result: any) => void): void; @onended\n音频自然播放结束事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onTimeUpdate(callback: (result: any) => void): void; @ontimeupdate\n音频播放进度更新事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback: (result: any) => void): void; @onerror\n音频播放错误事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onWaiting(callback: (result: any) => void): void; @onwaiting\n音频加载中事件,当音频因为数据不足,需要停下来加载时会触发\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onSeeking(callback: (result: any) => void): void; @onseeking\n音频进行 seek 操作事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onSeeked(callback: (result: any) => void): void; @onseeked\n音频完成 seek 操作事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offCanplay(callback: (result: any) => void): void; @offcanplay\n取消监听 onCanplay 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offPlay(callback: (result: any) => void): void; @offplay\n取消监听 onPlay 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offPause(callback: (result: any) => void): void; @offpause\n取消监听 onPause 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offStop(callback: (result: any) => void): void; @offstop\n取消监听 onStop 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offEnded(callback: (result: any) => void): void; @offended\n取消监听 onEnded 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offTimeUpdate(callback: (result: any) => void): void; @offtimeupdate\n取消监听 onTimeUpdate 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offError(callback: (result: any) => void): void; @offerror\n取消监听 onWaiting 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offWaiting(callback: (result: any) => void): void; @offwaiting\n取消监听 onWaiting 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offSeeking(callback: (result: any) => void): void; @offseeking\n取消监听 onSeeking 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offSeeked(callback: (result: any) => void): void; @offseeked\n取消监听 onSeeked 事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"getBackgroundAudioManager":{"name":"## uni.getBackgroundAudioManager() @getbackgroundaudiomanager","description":"获取全局唯一的背景音频管理器 backgroundAudioManager\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [BackgroundAudioManager](#backgroundaudiomanager-values) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| duration | - |\n@| currentTime | - |\n@| paused | - |\n@| src | - |\n@| startTime | - |\n@| buffered | - |\n@| title | - |\n@| epname | - |\n@| singer | - |\n@| coverImgUrl | - |\n@| webUrl | - |\n@| protocol | - |\n@| playbackRate | - |\n#### BackgroundAudioManager 的方法 @backgroundaudiomanager-values \n\n#### play(): void; @play\n播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### pause(): void; @pause\n暂停\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### seek(position: number): void; @seek\n跳转到指定位置,单位 s\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| position | - | \n\n\n#### stop(): void; @stop\n停止\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### onCanplay(callback: (result: any) => void): void; @oncanplay\n背景音频进入可以播放状态,但不保证后面可以流畅播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPlay(callback: (result: any) => void): void; @onplay\n背景音频播放事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPause(callback: (result: any) => void): void; @onpause\n背景音频暂停事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onStop(callback: (result: any) => void): void; @onstop\n背景音频停止事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onEnded(callback: (result: any) => void): void; @onended\n背景音频自然播放结束事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onTimeUpdate(callback: (result: any) => void): void; @ontimeupdate\n背景音频播放进度更新事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onPrev(callback: (result: any) => void): void; @onprev\n用户在系统音乐播放面板点击上一曲事件(iOS only)\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onNext(callback: (result: any) => void): void; @onnext\n用户在系统音乐播放面板点击下一曲事件(iOS only)\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback: (result: any) => void): void; @onerror\n背景音频播放错误事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onWaiting(callback: (result: any) => void): void; @onwaiting\n音频加载中事件,当音频因为数据不足,需要停下来加载时会触发\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"chooseMedia":{"name":"## uni.chooseMedia(options) @choosemedia","description":"拍摄或从手机相册中选择图片或视频。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| count | - |\n@| mediaType | - |\n@| sourceType | - |\n@| sizeType | HBuilderX 4.23 |\n@| maxDuration | HBuilderX 4.31 |\n@| camera | HBuilderX 4.25 |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseMediaSuccess 的属性值 @choosemediasuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFiles | - |\n| type | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseFile":{"name":"## uni.chooseFile(options) @choosefile","description":"从本地选择文件(仅支持H5)\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| count | - |\n@| type | - |\n@| extension | - |\n@| sizeType | - |\n@| sourceType | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseFileSuccess 的属性值 @choosefilesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePaths | - |\n| tempFiles | - |\n\n#### IMediaError 的属性值 @imediaerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"canvasToTempFilePath":{"name":"## uni.canvasToTempFilePath(options, componentInstance) @canvastotempfilepath","description":"把当前画布指定区域的内容导出生成指定大小的图片\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| x | - |\n@| y | - |\n@| width | - |\n@| height | - |\n@| destWidth | - |\n@| destHeight | - |\n@| canvasId | - |\n@| fileType | - |\n@| quality | - |\n@| success | - |\n@| fail | - |\n@| complete | - |\n| componentInstance | - | \n\n#### CanvasToTempFilePathSuccess 的属性值 @canvastotempfilepathsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n","returnValue":"","tutorial":""},"createCanvasContextAsync":{"name":"## uni.createCanvasContextAsync(options) @createcanvascontextasync","description":"获取CanvasContext对象实例\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| complete | - | \n\n#### CanvasContext 的方法 @canvascontext-values \n\n#### getContext(type: '2d'): CanvasRenderingContext2D \\| null @getcontext\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [CanvasRenderingContext2D](/api/canvasrenderingcontext2d.md) | 否 |\n \n\n#### toBlob(callback: CanvasContextToBlobCallback, type?: string, quality?: number): void @toblob\n创造 Blob 对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - |\n| type | - |\n| quality | - | \n\n\n#### toDataURL(): string @todataurl\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### createImage(): Image @createimage\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| [Image](#image-values) | 重复的图像源,支持代码包路径和本地临时路径 (本地路径) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n###### Image 的方法 @image-values \n\n###### onload(): void \\| null @onload\n图片加载完成事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### takeSnapshot(options: TakeSnapshotOptions): void @takesnapshot\n对当前组件进行截图,调用此方法会将当前组件(包含子节点)渲染结果导出成图片。\n成功会返回图片对应的临时文件路径,目前默认png格式\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | - |\n@| format | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### TakeSnapshotSuccess 的属性值 @takesnapshotsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n###### TakeSnapshotFail 的属性值 @takesnapshotfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n\n###### appendChild(aChild: UniElement): void @appendchild\n将一个元素添加到指定父元素的子元素列表的末尾处。如果将被插入的元素已经存在于当前文档的文档树中,那么将会它从原先的位置移动到新的位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n\n###### insertBefore(newChild: UniElement, refChild?: UniElement \\| null): UniElement \\| null @insertbefore\n在参考元素之前插入一个拥有指定父元素的子元素。如果给定的子元素是对文档中现有元素的引用,insertBefore() 会将其从当前位置移动到新位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| newChild | - |\n| refChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### setAttribute(key: string, value: string): void @setattribute\n设置指定元素上的某个属性值。如果设置的属性已经存在,则更新该属性值;否则使用指定的名称和值添加一个新的属性。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - |\n| value | - | \n\n\n###### getAttribute(key: string): string \\| null @getattribute\n获取元素指定的属性值,如果指定的属性不存在则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| string | 否 |\n \n\n###### hasAttribute(key: string): boolean @hasattribute\n返回改元素是否包含有指定的属性,属性存在则返回true,否则返回false。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n###### removeAttribute(key: string): void @removeattribute\n从元素中删除一个属性,如果指定的属性不存在,则不做任何操作,也不会产生错误。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n\n###### getBoundingClientRect(): DOMRect @getboundingclientrect\n获取元素的大小及其相对于窗口的位置信息。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [DOMRect](/dom/domrect.md) |\n \n\n###### getDrawableContext(): DrawableContext \\| null @getdrawablecontext\n获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [DrawableContext](/dom/drawablecontext.md) | 否 |\n \n\n###### removeChild(aChild: UniElement): UniElement \\| null @removechild\n从元素中删除一个子元素,返回删除的元素。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### remove(): void @remove\n把元素对象从它所属的 DOM 树中删除。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### scrollTo(x: number, y: number): void @scrollto\n使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### scrollBy(x: number, y: number): void @scrollby\n使得元素滚动一段特定距离 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### querySelector(selector: string.cssSelectorString): UniElement \\| null @queryselector\n返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### querySelectorAll(selector: string.cssSelectorString): UniElement[] \\| null @queryselectorall\n返回与指定的选择器组匹配的文档中的元素列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Array\\<[UniElement](/dom/unielement.md)\\> | 否 |\n \n\n###### focus(): void @focus\n使元素获取焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### blur(): void @blur\n使元素丢失焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### getIOSView(): UIView \\| null @getiosview\n获取元素ios原生view\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| UIView | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n获取元素android原生view 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getAndroidActivity(): Activity \\| null @getandroidactivity\n获取元素android原生activity 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Activity | 否 |\n \n\n###### getPage(): UniPage \\| null @getpage\n获取元素所属的页面对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n\n###### UniPage 的方法 @unipage-values \n\n###### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n###### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n \n\n###### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### ~~$setPageStyle(style: UTSJSONObject): void~~ @$setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### ~~$getPageStyle(): UTSJSONObject~~ @$getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n \n \n\n#### createPath2D(): Path2D @createpath2d\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [Path2D](/api/path2d.md) |\n \n\n#### requestAnimationFrame(callback: RequestAnimationFrameCallback): number; @requestanimationframe\n在下一次重绘之前,调用用户提供的回调函数\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n\n#### cancelAnimationFrame(taskId: number): void; @cancelanimationframe\n取消一个先前通过调用 uni.requestAnimationFrame() 方法添加到计划中的动画帧请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| taskId | - | \n\n","returnValue":"","tutorial":""},"getLocation":{"name":"## uni.getLocation(options) @getlocation","description":"获取当前的地理位置、速度","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | HBuilderX 4.25 |\n@| altitude | HBuilderX 4.25 |\n@| highAccuracyExpireTime | HBuilderX 4.25 |\n@| isHighAccuracy | HBuilderX 4.25 |\n@| success | HBuilderX 4.25 |\n@| fail | HBuilderX 4.25 |\n@| complete | HBuilderX 4.25 | \n\n#### GetLocationSuccess 的属性值 @getlocationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | HBuilderX 4.25 |\n| longitude | HBuilderX 4.25 |\n| speed | HBuilderX 4.25 |\n| accuracy | HBuilderX 4.25 |\n| altitude | HBuilderX 4.25 |\n| verticalAccuracy | x |\n| horizontalAccuracy | x |\n| address | x |\n\n#### IGetLocationFail 的属性值 @igetlocationfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"openLocation":{"name":"## uni.openLocation(options) @openlocation","description":"使用地图查看位置\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| latitude | - |\n@| longitude | - |\n@| scale | - |\n@| name | - |\n@| address | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### IOpenLocationError 的属性值 @iopenlocationerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"chooseLocation":{"name":"## uni.chooseLocation(options) @chooselocation","description":"打开地图选择位置。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| latitude | - |\n@| longitude | - |\n@| keyword | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### ChooseLocationSuccess 的属性值 @chooselocationsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| address | - |\n| latitude | - |\n| longitude | - |\n\n#### IChooseLocationError 的属性值 @ichooselocationerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"onLocationChange":{"name":"## uni.onLocationChange(callback) @onlocationchange","description":"监听实时地理位置变化事件,需结合 uni.startLocationUpdate 或 uni.startLocationUpdateBackground 使用。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OnLocationChangeCallbackResult 的属性值 @onlocationchangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | - |\n| longitude | - |\n| accuracy | - |\n| altitude | - |\n| altitudeAccuracy | - |\n| speed | - |\n| horizontalAccuracy | - |\n| verticalAccuracy | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"offLocationChange":{"name":"## uni.offLocationChange(callback) @offlocationchange","description":"关闭监听实时位置变化,前后台都停止消息接收。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n### OffLocationChangeCallbackResult 的属性值 @offlocationchangecallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | - |\n| longitude | - |\n| accuracy | - |\n| altitude | - |\n| altitudeAccuracy | - |\n| speed | - |\n| horizontalAccuracy | - |\n| verticalAccuracy | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"onLocationChangeError":{"name":"## uni.onLocationChangeError(callback) @onlocationchangeerror","description":"监听持续定位接口返回失败时触发。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"offLocationChangeError":{"name":"## uni.offLocationChangeError(callback) @offlocationchangeerror","description":"取消注册位置更新错误回调。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"startLocationUpdate":{"name":"## uni.startLocationUpdate(options) @startlocationupdate","description":"开启小程序进入前台时接收位置消息。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartLocationUpdateSuccess 的属性值 @startlocationupdatesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| address | - |\n| latitude | - |\n| longitude | - |\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"stopLocationUpdate":{"name":"## uni.stopLocationUpdate(options) @stoplocationupdate","description":"关闭监听实时位置变化,前后台都停止消息接收。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n","tutorial":""},"getStorageInfo":{"name":"## uni.getStorageInfo(options) @getstorageinfo","description":"uni.getStorageInfo函数定义\n异步获取当前 storage 的相关信息。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetStorageInfoSuccess 的属性值 @getstorageinfosuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| keys | - |\n| currentSize | - |\n| limitSize | - |\n","returnValue":"","tutorial":""},"getStorageInfoSync":{"name":"## uni.getStorageInfoSync() @getstorageinfosync","description":"uni.getStorageInfoSync函数定义\n同步获取当前 storage 的相关信息。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| **GetStorageInfoSuccess** | uni.getStorageInfo成功回调参数 |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| keys | - |\n@| currentSize | - |\n@| limitSize | - | \n","tutorial":""},"getStorage":{"name":"## uni.getStorage(options) @getstorage","description":"uni.getStorage函数定义\n从本地存储中异步获取指定 key 对应的内容。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| key | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### GetStorageSuccess 的属性值 @getstoragesuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n","returnValue":"","tutorial":""},"getStorageSync":{"name":"## uni.getStorageSync(key) @getstoragesync","description":"uni.getStorageSync函数定义\n从本地存储中同步获取指定 key 对应的内容。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| any | 否 |\n \n","tutorial":""},"setStorage":{"name":"## uni.setStorage(options) @setstorage","description":"uni.setStorage函数定义\n将数据存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个异步接口。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| key | - |\n@| data | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"setStorageSync":{"name":"## uni.setStorageSync(key, data) @setstoragesync","description":"uni.setStorageSync函数定义\n将 data 存储在本地storage存储中指定的 key 中,会覆盖掉原来该 key 对应的内容,这是一个同步接口。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - |\n| data | - | \n","returnValue":"","tutorial":""},"removeStorage":{"name":"## uni.removeStorage(options) @removestorage","description":"uni.removeStorage函数定义\n从本地存储中异步移除指定 key。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| key | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"removeStorageSync":{"name":"## uni.removeStorageSync(key) @removestoragesync","description":"uni.removeStorageSync函数定义\n从本地存储中同步移除指定 key。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n","returnValue":"","tutorial":""},"clearStorage":{"name":"## uni.clearStorage(option?) @clearstorage","description":"uni.clearStorage函数定义\n清除本地数据存储。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"clearStorageSync":{"name":"## uni.clearStorageSync() @clearstoragesync","description":"uni.clearStorageSync函数定义\n清除本地数据存储。\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"","returnValue":"","tutorial":""},"getFileSystemManager":{"name":"## uni.getFileSystemManager() @getfilesystemmanager","description":"获取文件管理器","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [FileSystemManager](#filesystemmanager-values) |\n\n#### FileSystemManager 的方法 @filesystemmanager-values \n\n#### readFile(options : ReadFileOptions) : void; @readfile\n读取本地文件内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| encoding | - |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### ReadFileSuccessResult 的属性值 @readfilesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n\n###### IFileSystemManagerFail 的属性值 @ifilesystemmanagerfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### readFileSync(filePath : string, encoding ?: string) : any; @readfilesync\nFileSystemManager.readFile 的同步版本参数\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| encoding | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| any |\n \n\n#### writeFile(options : WriteFileOptions) : void; @writefile\n写文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| encoding | - |\n@| data | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### FileManagerSuccessResult 的属性值 @filemanagersuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n\n#### read(option : ReadOption) : void; @read\n读文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| arrayBuffer | - |\n@| fd | - |\n@| length | - |\n@| offset | - |\n@| position | - |\n@| complete | - |\n@| fail | - |\n@| success | - | \n\n###### ReadSuccessCallbackResult 的属性值 @readsuccesscallbackresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| arrayBuffer | - |\n| bytesRead | - |\n| errMsg | - |\n\n\n#### readSync(option : ReadSyncOption) : ReadResult; @readsync\n读文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| arrayBuffer | - |\n@| fd | - |\n@| length | - |\n@| offset | - |\n@| position | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| **ReadResult** |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| arrayBuffer | - |\n@| bytesRead | - | \n\n#### writeFileSync(filePath : string, data : any, encoding ?: string) : void; @writefilesync\nFileSystemManager.writeFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| data | - |\n| encoding | - | \n\n\n#### unlink(options : UnLinkOptions) : void; @unlink\n删除文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### unlinkSync(filePath : string) : void; @unlinksync\nFileSystemManager.unlink 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - | \n\n\n#### mkdir(options : MkDirOptions) : void; @mkdir\n创建目录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| dirPath | - |\n@| recursive | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### mkdirSync(dirPath : string, recursive : boolean) : void; @mkdirsync\nFileSystemManager.mkdir 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| dirPath | - |\n| recursive | - | \n\n\n#### rmdir(options : RmDirOptions) : void; @rmdir\n删除目录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| dirPath | - |\n@| recursive | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### rmdirSync(dirPath : string, recursive : boolean) : void; @rmdirsync\nFileSystemManager.rmdir 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| dirPath | - |\n| recursive | - | \n\n\n#### readdir(options : ReadDirOptions) : void; @readdir\n读取目录内文件列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| dirPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### ReadDirSuccessResult 的属性值 @readdirsuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| files | - |\n\n\n#### readdirSync(dirPath : string) : string[] \\| null; @readdirsync\nFileSystemManager.readdir 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| dirPath | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Array\\ | 否 |\n \n\n#### access(options : AccessOptions) : void; @access\n判断文件/目录是否存在\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### accessSync(path : string) : void; @accesssync\nFileSystemManager.access 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - | \n\n\n#### rename(options : RenameOptions) : void; @rename\n重命名文件。可以把文件从 oldPath 移动到 newPath\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| oldPath | - |\n@| newPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### renameSync(oldPath : string, newPath : string) : void; @renamesync\nFileSystemManager.rename 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| oldPath | - |\n| newPath | - | \n\n\n#### copyFile(options : CopyFileOptions) : void; @copyfile\n复制文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| srcPath | - |\n@| destPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### copyFileSync(srcPath : string, destPath : string) : void; @copyfilesync\nFileSystemManager.copyFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| srcPath | - |\n| destPath | - | \n\n\n#### getFileInfo(options : GetFileInfoOptions) : void; @getfileinfo\n获取该本地临时文件 或 本地缓存文件 信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| digestAlgorithm | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### GetFileInfoSuccessResult 的属性值 @getfileinfosuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| digest | - |\n| size | - |\n| errMsg | - |\n\n\n#### stat(options : StatOptions) : void; @stat\n获取文件 Stats 对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| path | - |\n@| recursive | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### StatSuccessResult 的属性值 @statsuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| stats | - |\n\n###### Stats 的方法 @stats-values \n\n###### isDirectory() : boolean; @isdirectory\n判断当前文件是否一个目录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n###### isFile() : boolean; @isfile\n判断当前文件是否一个普通文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n\n#### statSync(path : string, recursive : boolean) : FileStats[]; @statsync\nFileSystemManager.stat 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| path | - |\n| recursive | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[FileStats](#filestats-values)\\> |\n \n\n#### appendFile(options : AppendFileOptions) : void; @appendfile\n在文件结尾追加内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| encoding | - |\n@| data | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### appendFileSync(filePath : string, data : any, encoding ?: string) : void; @appendfilesync\nFileSystemManager.appendFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| data | - |\n| encoding | - | \n\n\n#### saveFile(options : SaveFileOptions) : void; @savefile\n保存临时文件到本地。此接口会移动临时文件,因此调用成功后,tempFilePath 将不可用。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| tempFilePath | - |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### SaveFileSuccessResult 的属性值 @savefilesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| savedFilePath | - |\n\n\n#### saveFileSync(tempFilePath : string, filePath : string \\| null) : string; @savefilesync\nFileSystemManager.saveFile 的同步版本\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n| filePath | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### removeSavedFile(options : RemoveSavedFileOptions) : void; @removesavedfile\n删除该小程序下已保存的本地缓存文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### unzip(options : UnzipFileOptions) : void; @unzip\n解压文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| zipFilePath | - |\n@| targetPath | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### getSavedFileList(options : GetSavedFileListOptions) : void; @getsavedfilelist\n获取该已保存的本地缓存文件列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### GetSavedFileListResult 的属性值 @getsavedfilelistresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| fileList | - |\n\n\n#### truncate(options : TruncateFileOptions) : void; @truncate\n对文件内容进行截断操作\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| length | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### truncateSync(filePath : string, length ?: number) : void; @truncatesync\n对文件内容进行截断操作 (truncate 的同步版本)\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| length | - | \n\n\n#### readCompressedFile(options : ReadCompressedFileOptions) : void; @readcompressedfile\n读取指定压缩类型的本地文件内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| compressionAlgorithm | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### ReadCompressedFileResult 的属性值 @readcompressedfileresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | - |\n\n\n#### readCompressedFileSync(filePath : string, compressionAlgorithm : string) : string @readcompressedfilesync\n同步读取指定压缩类型的本地文件内容\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| filePath | - |\n| compressionAlgorithm | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### open(options : OpenFileOptions) : void; @open\n打开文件,返回文件描述符\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| flag | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### OpenFileSuccessResult 的属性值 @openfilesuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| fd | - |\n\n\n#### openSync(options : OpenFileSyncOptions) : string; @opensync\n同步打开文件,返回文件描述符\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| flag | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### write(options : WriteOptions) : void; @write\n写入文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| data | - |\n@| offset | - |\n@| length | - |\n@| position | - |\n@| encoding | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### WriteResult 的属性值 @writeresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| bytesWritten | - |\n| errMsg | - |\n\n\n#### writeSync(options : WriteSyncOptions) : WriteResult; @writesync\n同步写入文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| data | - |\n@| encoding | - |\n@| length | - |\n@| offset | - |\n@| position | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [WriteResult](#writeresult-values) |\n \n\n#### close(options : CloseOptions) : void; @close\n关闭文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### closeSync(options : CloseSyncOptions) : void; @closesync\n同步关闭文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - | \n\n\n#### fstat(options : FStatOptions) : void; @fstat\n获取文件的状态信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### FStatSuccessResult 的属性值 @fstatsuccessresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| stats | - |\n\n\n#### fstatSync(options : FStatSyncOptions) : Stats; @fstatsync\n同步获取文件的状态信息\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| [Stats](#stats-values) | Stats 对象,包含了文件的状态信息 |\n \n\n#### ftruncate(options : FTruncateFileOptions) : void; @ftruncate\n对文件内容进行截断操作\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| length | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### ftruncateSync(options : FTruncateFileSyncOptions) : void; @ftruncatesync\n同步对文件内容进行截断操作\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| fd | - |\n@| length | - | \n\n\n#### readZipEntry(options : ReadZipEntryOptions) : void; @readzipentry\n读取压缩包内的文件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| filePath | - |\n@| encoding | - |\n@| entries | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### EntriesResult 的属性值 @entriesresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| result | - |\n\n \n","tutorial":""},"getUniverifyManager":{"name":"## uni.getUniverifyManager() @getuniverifymanager","description":"获取一键登录管理对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [UniverifyManager](#univerifymanager-values) |\n\n#### UniverifyManager 的方法 @univerifymanager-values \n\n#### preLogin(options : PreLoginOptions) : void @prelogin\n预登录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### PreLoginFail 的属性值 @preloginfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### login(options : LoginOptions) : void @login\n登录\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.27 |\n@| scopes | - |\n@| timeout | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### LoginSuccess 的属性值 @loginsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| authResult | - |\n| code | - |\n| anonymousCode | - |\n| authCode | - |\n| authErrorScope | - |\n| authSucessScope | - |\n| appleInfo | - |\n\n###### IUniError 的属性值 @iunierror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### close() : void @close\n关闭登录页\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### isPreLoginValid() : boolean @ispreloginvalid\n预登录是否有效\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n \n","tutorial":""},"getFacialRecognitionMetaInfo":{"name":"## uni.getFacialRecognitionMetaInfo() @getfacialrecognitionmetainfo","description":"获取阿里云实人认证meta info","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n","tutorial":""},"startFacialRecognitionVerify":{"name":"## uni.startFacialRecognitionVerify(faceStyle) @startfacialrecognitionverify","description":"启动人脸识别","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| faceStyle | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| certifyId | - |\n@| progressBarColor | x |\n@| screenOrientation | x |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### StartFacialRecognitionVerifySuccess 的属性值 @startfacialrecognitionverifysuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| errMsg | - |\n| cause | - |\n\n#### IFacialRecognitionVerifyError 的属性值 @ifacialrecognitionverifyerror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"createRewardedVideoAd":{"name":"## uni.createRewardedVideoAd(option) @createrewardedvideoad","description":"创建激励视频广告对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| adpid | - |\n@| urlCallback | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [RewardedVideoAd](#rewardedvideoad-values) |\n\n#### RewardedVideoAd 的方法 @rewardedvideoad-values \n\n#### show() : Promise\\ @show\n广告加载成功之后,调用此方法展示广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### load() : Promise\\ @load\n加载广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### destroy() : void @destroy\n销毁广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### onLoad(callback : AdCallBackEvent) : void @onload\n绑定广告 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offLoad(callback : AdCallBackEvent) : void @offload\n解除绑定 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback : AdErrorCallBackEvent) : void @onerror\n绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### IUniAdError 的属性值 @iuniaderror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### offError(callback : AdErrorCallBackEvent) : void @offerror\n解除绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onClose(callback : AdCloseCallBackEvent) : void @onclose\n绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### VideoAdClose 的属性值 @videoadclose-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| isEnded | - |\n\n\n#### offClose(callback : AdCloseCallBackEvent) : void @offclose\n解除绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onAdClicked(callback : AdCallBackEvent) : void; @onadclicked\n绑定广告可点击屏幕区域事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onVerify(callback : AdVerifyCallBackEvent) : void; @onverify\n绑定 verify 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"createInterstitialAd":{"name":"## uni.createInterstitialAd(option) @createinterstitialad","description":"创建插屏广告对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| option | - | \n\n### CreateInterstitialAdOptions 的属性值 @createinterstitialadoptions-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| adpid | - |\n\n### InterstitialAd 的方法 @interstitialad-values \n\n### show() : Promise\\ @show\n广告加载成功之后,调用此方法展示广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n#### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n### load() : Promise\\ @load\n加载广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n#### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n### destroy() : void @destroy\n销毁广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n### onLoad(callback : AdCallBackEvent) : void @onload\n绑定广告 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### offLoad(callback : AdCallBackEvent) : void @offload\n解除绑定 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### onError(callback : AdErrorCallBackEvent) : void @onerror\n绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### offError(callback : AdErrorCallBackEvent) : void @offerror\n解除绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### onClose(callback : AdCallBackEvent) : void @onclose\n绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### offClose(callback : AdCallBackEvent) : void @offclose\n解除绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n### onAdClicked(callback : AdCallBackEvent) : void; @onadclicked\n绑定广告可点击屏幕区域事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n#### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [InterstitialAd](#interstitialad-values) |\n\n#### InterstitialAd 的方法 @interstitialad-values \n\n#### show() : Promise\\ @show\n广告加载成功之后,调用此方法展示广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### load() : Promise\\ @load\n加载广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Promise\\ |\n \n\n#### destroy() : void @destroy\n销毁广告\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### onLoad(callback : AdCallBackEvent) : void @onload\n绑定广告 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offLoad(callback : AdCallBackEvent) : void @offload\n解除绑定 load 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onError(callback : AdErrorCallBackEvent) : void @onerror\n绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### IUniAdError 的属性值 @iuniaderror-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### offError(callback : AdErrorCallBackEvent) : void @offerror\n解除绑定 error 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onClose(callback : AdCallBackEvent) : void @onclose\n绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### offClose(callback : AdCallBackEvent) : void @offclose\n解除绑定 close 事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n\n#### onAdClicked(callback : AdCallBackEvent) : void; @onadclicked\n绑定广告可点击屏幕区域事件的监听器\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n \n","tutorial":""},"requestPayment":{"name":"## uni.requestPayment(options) @requestpayment","description":"请求支付","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.26 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| provider | HBuilderX 4.25 |\n@| orderInfo | HBuilderX 4.25 |\n@| success | HBuilderX 4.25 |\n@| fail | HBuilderX 4.25 |\n@| complete | HBuilderX 4.25 | \n\n#### RequestPaymentSuccess 的属性值 @requestpaymentsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| data | HBuilderX 4.25 |\n\n#### IRequestPaymentFail 的属性值 @irequestpaymentfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"requestVirtualPayment":{"name":"## uni.requestVirtualPayment(options) @requestvirtualpayment","description":"请求支付","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n#### IRequestVirtualPaymentFail 的属性值 @irequestvirtualpaymentfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n","returnValue":"","tutorial":""},"getVirtualPaymentManager":{"name":"## uni.getVirtualPaymentManager() @getvirtualpaymentmanager","description":"获取各平台虚拟支付的管理类,用于操作各平台专有的API。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| () => [VirtualPaymentManager](#virtualpaymentmanager-values) | virtual-payment的管理类 |\n\n#### VirtualPaymentManager 的方法 @virtualpaymentmanager-values \n\n#### restoreTransactions(options : AppleIAPRestoreOptions) : void; @restoretransactions\n恢复苹果服务器已支付的交易列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n###### IAppleIAPRestoreFail 的属性值 @iappleiaprestorefail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### getUnfinishedTransactions(options : AppleIAPUnfinishedTransactionOptions) : void; @getunfinishedtransactions\n获取苹果服务器已支付且未关闭的交易列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n###### IAppleIAPUnfinishedTransactionFail 的属性值 @iappleiapunfinishedtransactionfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### finishTransaction(options : AppleIAPFinishTransactionOptions) : void; @finishtransaction\n关闭苹果服务器订单\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - | \n\n###### IAppleIAPFinishTransactionFail 的属性值 @iappleiapfinishtransactionfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n \n","tutorial":""},"getPushClientId":{"name":"## uni.getPushClientId(options) @getpushclientid","description":"获取客户端唯一的推送标识","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"onPushMessage":{"name":"## uni.onPushMessage(callback) @onpushmessage","description":"启动监听推送消息事件","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"offPushMessage":{"name":"## uni.offPushMessage(callback) @offpushmessage","description":"关闭推送消息监听事件,iOS端调用会关闭所有监听。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n","returnValue":"","tutorial":""},"createPushMessage":{"name":"## uni.createPushMessage(options) @createpushmessage","description":"创建本地通知栏消息","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"getPushChannelManager":{"name":"## uni.getPushChannelManager() @getpushchannelmanager","description":"获取通知渠道管理器,Android 8系统以上才可以设置通知渠道,Android 8系统以下返回null,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),iOS不支持。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [ChannelManager](#channelmanager-values) |\n\n#### ChannelManager 的方法 @channelmanager-values \n\n#### setPushChannel(options: SetPushChannelOptions): void; @setpushchannel\n设置推送渠道\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| soundName | - |\n@| channelId | - |\n@| channelDesc | - |\n@| enableLights | - |\n@| enableVibration | - |\n@| importance | - |\n@| lockscreenVisibility | - | \n\n\n#### getAllChannels(): Array\\; @getallchannels\n获取当前应用注册的所有的通知渠道。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\ |\n \n \n","tutorial":""},"setAppBadgeNumber":{"name":"## uni.setAppBadgeNumber(num, options?) @setappbadgenumber","description":"设置应用图标上显示的角标数字,注意:不同手机厂商的角标显示规则不同,有部分设备的rom版本不支持显示角标,另有部分rom需要在应用的通知管理里开启`桌面角标`配置,才可以设置角标成功。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.31 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| num | - |\n| options | - | \n","returnValue":"","tutorial":""},"getChannelManager":{"name":"## uni.~~getChannelManager()~~ @getchannelmanager","description":"获取通知渠道管理器,Android 8系统以上才可以设置通知渠道,Android 8系统以下返回null,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn) ,iOS不支持。 **已废弃,仅为了向下兼容保留,建议使用`getPushChannelManager`。**","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [ChannelManager](#channelmanager-values) |\n\n#### ChannelManager 的方法 @channelmanager-values \n\n#### setPushChannel(options: SetPushChannelOptions): void; @setpushchannel\n设置推送渠道\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| soundName | - |\n@| channelId | - |\n@| channelDesc | - |\n@| enableLights | - |\n@| enableVibration | - |\n@| importance | - |\n@| lockscreenVisibility | - | \n\n\n#### getAllChannels(): Array\\; @getallchannels\n获取当前应用注册的所有的通知渠道。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\ |\n \n \n","tutorial":""},"createWebviewContext":{"name":"## uni.createWebviewContext(webviewId, component?) @createwebviewcontext","description":"创建 web-view 组件的上下文对象,用于操作 web-view 的行为。","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| webviewId | - |\n| component | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 | 必备 |\n| :- | :- | :- |\n| [WebviewContext](#webviewcontext-values) | web-view组件上下文对象 | 否 |\n\n#### WebviewContext 的方法 @webviewcontext-values \n\n#### back() : void @back\n后退到 web-view 组件网页加载历史的上一页,如果不存在上一页则没有任何效果。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### forward() : void @forward\n前进到 web-view 组件网页加载历史的下一页,如果不存在下一页则没有任何效果。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### reload() : void @reload\n重新加载 web-view 组件当前页面。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### stop() : void @stop\n停止加载 web-view 组件当前网页,该方法不能阻止已经加载的 html 文档,但是能够阻止未完成的图片及延迟加载的资源。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n#### evalJS(js : string) : void @evaljs\n在网页中执行指定的js脚本,在 uvue 页面中可通过此方法向 web-view 组件加载的页面发送数据\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| js | - | \n\n \n","tutorial":""},"createVideoContext":{"name":"## uni.createVideoContext(videoId, component?) @createvideocontext","description":"创建并返回 video 上下文 videoContext 对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| videoId | - |\n| component | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 | 必备 |\n| :- | :- | :- |\n| [VideoContext](#videocontext-values) | video组件上下文对象 | 否 |\n\n#### VideoContext 的方法 @videocontext-values \n\n#### play() : void; @play\n播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### pause() : void; @pause\n暂停\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### seek(position : number) : void; @seek\n跳转到指定位置\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| position | - | \n\n\n#### stop() : void; @stop\n停止视频\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n\n#### sendDanmu(danmu : Danmu) : void; @senddanmu\n发送弹幕\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| danmu | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| text | - |\n@| color | - |\n@| time | - | \n\n\n#### playbackRate(rate : number) : void; @playbackrate\n设置倍速播放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| rate | - | \n\n\n#### requestFullScreen(direction ?: RequestFullScreenOptions \\| null) : void; @requestfullscreen\n进入全屏\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | - | \n\n\n#### exitFullScreen() : void; @exitfullscreen\n退出全屏\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n\n\n \n","tutorial":""},"createMapContext":{"name":"## uni.createMapContext(mapId, component?) @createmapcontext","description":"创建并返回 map 上下文 mapContext 对象","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| mapId | - |\n| component | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 | 必备 |\n| :- | :- | :- |\n| [MapContext](#mapcontext-values) | map组件上下文对象 | 否 |\n\n#### MapContext 的方法 @mapcontext-values \n\n#### getCenterLocation(options : MapContextGetCenterLocationOptions) : void; @getcenterlocation\n获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 uni.openLocation\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### LocationObject 的属性值 @locationobject-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| latitude | - |\n| longitude | - |\n\n###### MapContextFail 的属性值 @mapcontextfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errCode | - |\n| errSubject | - |\n| data | - |\n| cause | - |\n| errMsg | - |\n\n\n#### moveToLocation(options : MapContextMoveToLocationOptions) : void; @movetolocation\n将地图中心移动到当前定位点,需要配合map组件的show-location使用\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| latitude | - |\n@| longitude | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### translateMarker(options : MapContextTranslateMarkerOptions) : void; @translatemarker\n平移marker,带动画\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markerId | - |\n@| destination | - |\n@| autoRotate | - |\n@| rotate | - |\n@| moveWithRotate | - |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### includePoints(options : MapContextIncludePointsOptions) : void; @includepoints\n缩放视野展示所有经纬度\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| points | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### getRegion(options : MapContextGetRegionOptions) : void; @getregion\n获取当前地图的视野范围\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### MapContextGetRegionResult 的属性值 @mapcontextgetregionresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| southwest | - |\n| northeast | - |\n\n\n#### getScale(options : MapContextGetScaleOptions) : void; @getscale\n获取当前地图的缩放级别\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### MapContextGetScaleResult 的属性值 @mapcontextgetscaleresult-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| scale | - |\n\n\n#### addGroundOverlay(options : MapContextAddGroundOverlayOptions) : void; @addgroundoverlay\n创建自定义图片图层,图片会随着地图缩放而缩放\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| src | - |\n@| bounds | - |\n@| visible | - |\n@| zIndex | - |\n@| opacity | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### addMarkers(options : MapContextAddMarkersOptions) : void; @addmarkers\n添加 marker\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markers | - |\n@| clear | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### moveAlong(options : MapContextMoveAlongOptions) : void; @movealong\n沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markerId | - |\n@| path | - |\n@| duration | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### removeGroundOverlay(options : MapContextRemoveGroundOverlayOptions) : void; @removegroundoverlay\n移除自定义图片图层\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### removeMarkers(options : MapContextRemoveMarkersOptions) : void; @removemarkers\n移除 marker\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| markerIds | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n\n#### updateGroundOverlay(options : MapContextUpdateGroundOverlayOptions) : void; @updategroundoverlay\n更新自定义图片图层。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| id | - |\n@| src | - |\n@| bounds | - |\n@| visible | - |\n@| zIndex | - |\n@| opacity | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n \n","tutorial":""},"createCanvasContext":{"name":"## uni.createCanvasContext(canvasId, componentInstance) @createcanvascontext","description":"创建 canvas 绘图上下文\n","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| canvasId | - |\n| componentInstance | - | \n","returnValue":"### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [CanvasContext](#canvascontext-values) |\n\n#### CanvasContext 的方法 @canvascontext-values \n\n#### getContext(type: '2d'): CanvasRenderingContext2D \\| null @getcontext\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [CanvasRenderingContext2D](/api/canvasrenderingcontext2d.md) | 否 |\n \n\n#### toBlob(callback: CanvasContextToBlobCallback, type?: string, quality?: number): void @toblob\n创造 Blob 对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - |\n| type | - |\n| quality | - | \n\n\n#### toDataURL(): string @todataurl\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| string |\n \n\n#### createImage(): Image @createimage\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 描述 |\n| :- | :- |\n| [Image](#image-values) | 重复的图像源,支持代码包路径和本地临时路径 (本地路径) |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| src | - |\n###### Image 的方法 @image-values \n\n###### onload(): void \\| null @onload\n图片加载完成事件\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### takeSnapshot(options: TakeSnapshotOptions): void @takesnapshot\n对当前组件进行截图,调用此方法会将当前组件(包含子节点)渲染结果导出成图片。\n成功会返回图片对应的临时文件路径,目前默认png格式\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| type | - |\n@| format | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n###### TakeSnapshotSuccess 的属性值 @takesnapshotsuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| tempFilePath | - |\n\n###### TakeSnapshotFail 的属性值 @takesnapshotfail-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n\n\n###### appendChild(aChild: UniElement): void @appendchild\n将一个元素添加到指定父元素的子元素列表的末尾处。如果将被插入的元素已经存在于当前文档的文档树中,那么将会它从原先的位置移动到新的位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n\n###### insertBefore(newChild: UniElement, refChild?: UniElement \\| null): UniElement \\| null @insertbefore\n在参考元素之前插入一个拥有指定父元素的子元素。如果给定的子元素是对文档中现有元素的引用,insertBefore() 会将其从当前位置移动到新位置。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| newChild | - |\n| refChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### setAttribute(key: string, value: string): void @setattribute\n设置指定元素上的某个属性值。如果设置的属性已经存在,则更新该属性值;否则使用指定的名称和值添加一个新的属性。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - |\n| value | - | \n\n\n###### getAttribute(key: string): string \\| null @getattribute\n获取元素指定的属性值,如果指定的属性不存在则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| string | 否 |\n \n\n###### hasAttribute(key: string): boolean @hasattribute\n返回改元素是否包含有指定的属性,属性存在则返回true,否则返回false。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| boolean |\n \n\n###### removeAttribute(key: string): void @removeattribute\n从元素中删除一个属性,如果指定的属性不存在,则不做任何操作,也不会产生错误。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| key | - | \n\n\n###### getBoundingClientRect(): DOMRect @getboundingclientrect\n获取元素的大小及其相对于窗口的位置信息。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [DOMRect](/dom/domrect.md) |\n \n\n###### getDrawableContext(): DrawableContext \\| null @getdrawablecontext\n获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [DrawableContext](/dom/drawablecontext.md) | 否 |\n \n\n###### removeChild(aChild: UniElement): UniElement \\| null @removechild\n从元素中删除一个子元素,返回删除的元素。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| aChild | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### remove(): void @remove\n把元素对象从它所属的 DOM 树中删除。\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### scrollTo(x: number, y: number): void @scrollto\n使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### scrollBy(x: number, y: number): void @scrollby\n使得元素滚动一段特定距离 仅scroll-view、list-view组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| x | - |\n| y | - | \n\n\n###### querySelector(selector: string.cssSelectorString): UniElement \\| null @queryselector\n返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### querySelectorAll(selector: string.cssSelectorString): UniElement[] \\| null @queryselectorall\n返回与指定的选择器组匹配的文档中的元素列表\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selector | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Array\\<[UniElement](/dom/unielement.md)\\> | 否 |\n \n\n###### focus(): void @focus\n使元素获取焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### blur(): void @blur\n使元素丢失焦点 仅input、Textarea组件支持\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n\n###### getIOSView(): UIView \\| null @getiosview\n获取元素ios原生view\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| UIView | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n获取元素android原生view 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getAndroidActivity(): Activity \\| null @getandroidactivity\n获取元素android原生activity 可能返回null\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| Activity | 否 |\n \n\n###### getPage(): UniPage \\| null @getpage\n获取元素所属的页面对象\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n\n###### UniPage 的方法 @unipage-values \n\n###### getPageStyle(): UTSJSONObject @getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n\n###### setPageStyle(style: UTSJSONObject): void @setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### getParentPage(): UniPage \\| null @getparentpage\n获取所属父页面\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniPage](#unipage-values) | 否 |\n \n\n###### getDialogPages(): UniPage[\\] @getdialogpages\n获取当前页面的 dialog 子页面集合\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| Array\\<[UniPage](#unipage-values)\\> |\n \n\n###### getElementById(id: string.IDString \\| string): UniElement \\| null @getelementbyid\n返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\\\n如果需要获取指定的节点类型,需要使用 as 进行类型转换。\\\nID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - | \n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### getAndroidView(): View \\| null @getandroidview\n返回 android 平台页面根 view\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| View | 否 |\n \n\n###### getHTMLElement(): UniElement \\| null @gethtmlelement\n返回页面 HTML Element 对象\n\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 | 必备 |\n| :- | :- |\n| [UniElement](/dom/unielement.md) | 否 |\n \n\n###### ~~$setPageStyle(style: UTSJSONObject): void~~ @$setpagestyle\n设置当前页面样式 \\\n支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| style | - | \n\n\n###### ~~$getPageStyle(): UTSJSONObject~~ @$getpagestyle\n获取当前页面样式 \\\n包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性 **已废弃,仅为了向下兼容保留**\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| x |\n\n\n###### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| UTSJSONObject |\n \n \n \n\n#### createPath2D(): Path2D @createpath2d\n返回一个包含图片展示的 data URI\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| [Path2D](/api/path2d.md) |\n \n\n#### requestAnimationFrame(callback: RequestAnimationFrameCallback): number; @requestanimationframe\n在下一次重绘之前,调用用户提供的回调函数\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| callback | - | \n\n##### 返回值 HarmonyOS Next 兼容性 \n\n| 类型 |\n| :- |\n| number |\n \n\n#### cancelAnimationFrame(taskId: number): void; @cancelanimationframe\n取消一个先前通过调用 uni.requestAnimationFrame() 方法添加到计划中的动画帧请求\n**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| - |\n\n##### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| taskId | - | \n\n \n","tutorial":""},"canvasPutImageData":{"name":"## uni.canvasPutImageData(options) @canvasputimagedata","description":"将像素数据绘制到画布","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| canvasId | - |\n@| data | - |\n@| x | - |\n@| y | - |\n@| width | - |\n@| height | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n","returnValue":"","tutorial":""},"canvasGetImageData":{"name":"## uni.canvasGetImageData(options) @canvasgetimagedata","description":"描述 canvas 区域隐含的像素数据","compatibility":"**HarmonyOS Next 兼容性** \n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","param":"### 参数 HarmonyOS Next 兼容性 @parameters-harmony-compatibility \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| options | - |\n@| 名称 | HarmonyOS Next 兼容性 |\n@| :- | :- |\n@| canvasId | - |\n@| x | - |\n@| y | - |\n@| width | - |\n@| height | - |\n@| success | - |\n@| fail | - |\n@| complete | - | \n\n#### CanvasGetImageDataSuccess 的属性值 @canvasgetimagedatasuccess-values \n\n| 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| errMsg | - |\n| width | - |\n| height | - |\n| data | - |\n","returnValue":"","tutorial":""},"general_type":{"name":"## 通用类型\n","param":""}} \ No newline at end of file diff --git a/docs/.vuepress/utils/uniappComJson.json b/docs/.vuepress/utils/uniappComJson.json index d9e74a696b9ac98f71c6e04e91d97471c5cf943f..401ba5855b9c25ef1adbc3df90538f8482aa6081 100644 --- a/docs/.vuepress/utils/uniappComJson.json +++ b/docs/.vuepress/utils/uniappComJson.json @@ -1 +1 @@ -{"view":{"name":"## view","description":"基本视图容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| hover-class | HBuilderX 4.23 |\n| hover-stop-propagation | HBuilderX 4.23 |\n| hover-start-time | HBuilderX 4.23 |\n| hover-stay-time | HBuilderX 4.23 |"},"scroll-view":{"name":"## scroll-view","description":"可滚动视图容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | HBuilderX 4.23 |\n| upper-threshold | HBuilderX 4.23 |\n| lower-threshold | HBuilderX 4.23 |\n| scroll-top | HBuilderX 4.23 |\n| scroll-left | HBuilderX 4.23 |\n| scroll-into-view | HBuilderX 4.23 |\n| scroll-with-animation | HBuilderX 4.23 |\n| refresher-enabled | HBuilderX 4.23 |\n| refresher-threshold | HBuilderX 4.23 |\n| refresher-default-style | HBuilderX 4.23 |\n| refresher-background | HBuilderX 4.23 |\n| refresher-triggered | HBuilderX 4.23 |\n| show-scrollbar | HBuilderX 4.23 |\n| @refresherpulling | HBuilderX 4.23 |\n| @refresherrefresh | HBuilderX 4.23 |\n| @refresherrestore | HBuilderX 4.23 |\n| @refresherabort | HBuilderX 4.23 |\n| @scrolltoupper | HBuilderX 4.23 |\n| @scrolltolower | HBuilderX 4.23 |\n| @scroll | HBuilderX 4.23 |\n| rebound | - |\n| scroll-y | HBuilderX 4.23 |\n| scroll-x | HBuilderX 4.23 |"},"swiper-item":{"name":"## swiper-item","description":"swiper的唯一合法子组件。每个swiper-item代表一个滑块。宽高自动设置为100%","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| item-id | - |"},"swiper":{"name":"## swiper","description":"滑块视图容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| indicator-dots | HBuilderX 4.23 |\n| indicator-color | HBuilderX 4.23 |\n| indicator-active-color | HBuilderX 4.23 |\n| active-class | - |\n| changing-class | - |\n| acceleration | - |\n| disable-programmatic-animation | - |\n| disable-touch | - |\n| touchable | - |\n| easing-function | - |\n| autoplay | HBuilderX 4.23 |\n| current | HBuilderX 4.23 |\n| current-item-id | HBuilderX 4.23 |\n| interval | HBuilderX 4.23 |\n| duration | HBuilderX 4.23 |\n| circular | HBuilderX 4.23 |\n| vertical | HBuilderX 4.23 |\n| rebound | - |\n| previous-margin | - |\n| next-margin | - |\n| display-multiple-items | - |\n| skip-hidden-item-layout | - |\n| @change | HBuilderX 4.23 |\n| @transition | HBuilderX 4.23 |\n| @animationfinish | HBuilderX 4.23 |"},"match-media":{"name":"## match-media","description":"media query 匹配检测节点","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| width | - |\n| min-width | - |\n| max-width | - |\n| height | - |\n| min-height | - |\n| max-height | - |\n| orientation | - |"},"movable-area":{"name":"## movable-area","description":"movable-view 的可移动区域","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n"},"movable-view":{"name":"## movable-view","description":"可移动的视图容器,在页面中可以拖拽滑动","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | HBuilderX 4.23 |\n| inertia | HBuilderX 4.23 |\n| out-of-bounds | HBuilderX 4.23 |\n| x | HBuilderX 4.23 |\n| y | HBuilderX 4.23 |\n| damping | HBuilderX 4.23 |\n| friction | HBuilderX 4.23 |\n| disabled | HBuilderX 4.23 |\n| scale | HBuilderX 4.23 |\n| scale-min | HBuilderX 4.23 |\n| scale-max | HBuilderX 4.23 |\n| scale-value | HBuilderX 4.23 |\n| animation | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |\n| @scale | HBuilderX 4.23 |"},"cover-view":{"name":"## cover-view","description":"覆盖在原生组件之上的文本视图,可覆盖的原生组件包括map、video、canvas、camera,只支持嵌套cover-view、cover-image","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"cover-image":{"name":"## cover-image","description":"覆盖在原生组件之上的图片视图,可覆盖的原生组件同cover-view,支持嵌套在cover-view里。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| v-for | - |\n| v-if | - |\n| v-show | - |\n| src | - |"},"list-item":{"name":"## list-item","description":"list-view组件的唯一合法子组件。每个item是一行","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | - |"},"sticky-header":{"name":"## sticky-header","description":"吸顶布局容器

注意:暂时仅支持作为list-view、sticky-section的子节点, sticky-header不支持css样式!当一个容器视图设置多个sticky-header时,后一个sticky-header会停靠在前一个sticky-header的末尾处。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"sticky-section":{"name":"## sticky-section","description":"吸顶布局容器

注意:暂时仅支持作为list-view的子节点, sticky-section不支持css样式!","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"list-view":{"name":"## list-view","description":"列表组件","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"nested-scroll-header":{"name":"## nested-scroll-header","description":" scroll-view 嵌套模式场景中属于外层 scroll-view 的节点,仅支持作为 \\ 嵌套模式的直接子节点。不支持复数子节点,渲染时会取其第一个子节点来渲染","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"nested-scroll-body":{"name":"## nested-scroll-body","description":" scroll-view 嵌套模式场景中属于嵌套内层 scroll-view 的父节点,仅支持作为 \\ 嵌套模式的直接子节点。不支持复数子节点,渲染时会取其第一个子节点来渲染","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"icon":{"name":"## icon","description":"图标","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | HBuilderX 4.23 |\n| size | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"text":{"name":"## text","description":"文本","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selectable | HBuilderX 4.23 |\n| space | HBuilderX 4.23 |\n| decode | HBuilderX 4.23 |"},"rich-text":{"name":"## rich-text","description":"富文本。可渲染文字样式、图片、超链接。支持部分HTML标签","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| nodes | HBuilderX 4.23 |\n| selectable | HBuilderX 4.23 |\n| @itemclick | HBuilderX 4.23 |"},"progress":{"name":"## progress","description":"进度条","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| duration | HBuilderX 4.23 |\n| percent | HBuilderX 4.23 |\n| show-info | HBuilderX 4.23 |\n| stroke-width | HBuilderX 4.23 |\n| activeColor | HBuilderX 4.23 |\n| backgroundColor | HBuilderX 4.23 |\n| active | HBuilderX 4.23 |\n| active-mode | HBuilderX 4.23 |"},"button":{"name":"## button","description":"按钮","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| hover-class | HBuilderX 4.23 |\n| hover-start-time | HBuilderX 4.23 |\n| hover-stay-time | HBuilderX 4.23 |\n| size | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| plain | HBuilderX 4.23 |\n| loading | HBuilderX 4.23 |\n| form-type | HBuilderX 4.23 |\n| open-type | - |\n| @error | - |\n| @chooseinvoicetitle | - |\n| @subscribe | - |\n| @login | - |"},"checkbox":{"name":"## checkbox","description":"多选项。在1组check-group中可选择多个","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| checked | HBuilderX 4.23 |\n| backgroundColor | HBuilderX 4.23 |\n| borderColor | HBuilderX 4.23 |\n| activeBackgroundColor | HBuilderX 4.23 |\n| activeBorderColor | HBuilderX 4.23 |\n| iconColor | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"checkbox-group":{"name":"## checkbox-group","description":"多选框组","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |"},"form":{"name":"## form","description":"表单","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| @submit | HBuilderX 4.23 |\n| @reset | HBuilderX 4.23 |"},"input":{"name":"## input","description":"输入框","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| disabled | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| password | HBuilderX 4.23 |\n| placeholder | HBuilderX 4.23 |\n| placeholder-style | HBuilderX 4.23 |\n| placeholder-class | HBuilderX 4.23 |\n| maxlength | HBuilderX 4.23 |\n| cursor-color | HBuilderX 4.23 |\n| auto-focus | HBuilderX 4.23 |\n| focus | HBuilderX 4.23 |\n| confirm-type | HBuilderX 4.23 |\n| confirm-hold | HBuilderX 4.23 |\n| cursor | HBuilderX 4.23 |\n| selection-start | HBuilderX 4.23 |\n| selection-end | HBuilderX 4.23 |\n| inputmode | HBuilderX 4.23 |\n| @input | HBuilderX 4.23 |\n| @focus | HBuilderX 4.23 |\n| @blur | HBuilderX 4.23 |\n| @confirm | HBuilderX 4.23 |"},"editor":{"name":"## editor","description":"富文本编辑器,可以对图片、文字进行编辑。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| read-only | - |\n| placeholder | - |\n| show-img-size | - |\n| show-img-toolbar | - |\n| show-img-resize | - |\n| @ready | - |\n| @focus | - |\n| @blur | - |\n| @input | - |\n| @statuschange | - |"},"label":{"name":"## label","description":"用来改进表单组件的可用性,使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| for | HBuilderX 4.23 |"},"picker":{"name":"## picker","description":"从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | - |\n| mode | - |\n| range | - |\n| range-key | - |\n| value | - |\n| start | - |\n| end | - |\n| fields | - |\n| custom-item | - |\n| @change | - |\n| @columnchange | - |\n| @cancel | - |"},"picker-view-column":{"name":"## picker-view-column","description":"仅可放置于 picker-view 中,其子节点未继承 picker-view 的选中框的高度,需要自己设置高度并居中","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n"},"picker-view":{"name":"## picker-view","description":"嵌入页面的滚动选择器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| value | HBuilderX 4.23 |\n| indicator-style | HBuilderX 4.23 |\n| indicator-class | HBuilderX 4.23 |\n| mask-style | HBuilderX 4.23 |\n| mask-class | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |"},"radio":{"name":"## radio","description":"单选项。在1组radio-group中只能选中1个","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| checked | HBuilderX 4.23 |\n| backgroundColor | HBuilderX 4.23 |\n| borderColor | HBuilderX 4.23 |\n| activeBackgroundColor | HBuilderX 4.23 |\n| activeBorderColor | HBuilderX 4.23 |\n| iconColor | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"radio-group":{"name":"## radio-group","description":"单选框组","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |"},"slider":{"name":"## slider","description":"滑动选择器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| disabled | - |\n| min | - |\n| max | - |\n| step | - |\n| value | - |\n| backgroundColor | - |\n| block-size | - |\n| show-value | - |\n| @change | - |\n| @changing | - |\n| block-color | - |\n| activeColor | - |"},"switch":{"name":"## switch","description":"开关选择器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| checked | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| disabled | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"textarea":{"name":"## textarea","description":"多行输入框","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| placeholder | HBuilderX 4.23 |\n| placeholder-style | HBuilderX 4.23 |\n| placeholder-class | HBuilderX 4.23 |\n| maxlength | HBuilderX 4.23 |\n| auto-focus | HBuilderX 4.23 |\n| focus | HBuilderX 4.23 |\n| confirm-type | HBuilderX 4.23 |\n| cursor | HBuilderX 4.23 |\n| confirm-hold | HBuilderX 4.23 |\n| auto-height | HBuilderX 4.23 |\n| cursor-color | - |\n| selection-start | HBuilderX 4.23 |\n| selection-end | HBuilderX 4.23 |\n| inputmode | - |\n| @confirm | HBuilderX 4.23 |\n| @input | HBuilderX 4.23 |\n| @linechange | HBuilderX 4.23 |\n| @blur | HBuilderX 4.23 |\n| @focus | HBuilderX 4.23 |"},"navigator":{"name":"## navigator","description":"页面链接","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| target | HBuilderX 4.23 |\n| url | HBuilderX 4.23 |\n| open-type | HBuilderX 4.23 |\n| delta | HBuilderX 4.23 |\n| app-id | - |\n| path | HBuilderX 4.23 |\n| extra-data | - |\n| version | - |\n| animation-type | HBuilderX 4.23 |\n| animation-duration | HBuilderX 4.23 |\n| hover-class | - |\n| hover-stop-propagation | - |\n| hover-start-time | - |\n| hover-stay-time | - |\n| render-link | HBuilderX 4.23 |"},"image":{"name":"## image","description":"图片","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| src | HBuilderX 4.23 |\n| mode | HBuilderX 4.23 |\n| draggable | HBuilderX 4.23 |\n| @error | HBuilderX 4.23 |\n| @load | HBuilderX 4.23 |"},"video":{"name":"## video","description":"视频","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| loop | HBuilderX 4.23 |\n| src | HBuilderX 4.23 |\n| initial-time | HBuilderX 4.23 |\n| duration | HBuilderX 4.23 |\n| controls | HBuilderX 4.23 |\n| danmu-list | HBuilderX 4.23 |\n| danmu-btn | HBuilderX 4.23 |\n| enable-danmu | HBuilderX 4.23 |\n| autoplay | HBuilderX 4.23 |\n| muted | HBuilderX 4.23 |\n| page-gesture | HBuilderX 4.23 |\n| direction | HBuilderX 4.23 |\n| show-progress | HBuilderX 4.23 |\n| show-fullscreen-btn | HBuilderX 4.23 |\n| show-play-btn | HBuilderX 4.23 |\n| show-center-play-btn | HBuilderX 4.23 |\n| show-loading | HBuilderX 4.23 |\n| enable-progress-gesture | HBuilderX 4.23 |\n| object-fit | HBuilderX 4.23 |\n| poster | HBuilderX 4.23 |\n| show-mute-btn | HBuilderX 4.23 |\n| title | HBuilderX 4.23 |\n| play-btn-position | HBuilderX 4.23 |\n| enable-play-gesture | HBuilderX 4.23 |\n| auto-pause-if-navigate | HBuilderX 4.23 |\n| auto-pause-if-open-native | HBuilderX 4.23 |\n| vslide-gesture | HBuilderX 4.23 |\n| vslide-gesture-in-fullscreen | HBuilderX 4.23 |\n| poster-for-crawler | HBuilderX 4.23 |\n| play-strategy | HBuilderX 4.23 |\n| is-live | HBuilderX 4.23 |\n| @loadedmetadata | HBuilderX 4.23 |\n| @play | HBuilderX 4.23 |\n| @pause | HBuilderX 4.23 |\n| @ended | HBuilderX 4.23 |\n| @timeupdate | HBuilderX 4.23 |\n| @fullscreenchange | HBuilderX 4.23 |\n| @waiting | HBuilderX 4.23 |\n| @error | HBuilderX 4.23 |\n| @progress | HBuilderX 4.23 |\n| @fullscreenclick | HBuilderX 4.23 |\n| @controlstoggle | HBuilderX 4.23 |"},"animation-view":{"name":"## animation-view","description":"Lottie 动画\n> 本 Component 是 uni ext component,需下载插件:[animation-view](https://ext.dcloud.net.cn/plugin?name=uni-animation-view)\n","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"live-player":{"name":"## live-player","description":"实时音视频播放","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| src | - |\n| mode | - |\n| autoplay | - |\n| muted | - |\n| orientation | - |\n| object-fit | - |\n| background-mute | - |\n| min-cache | - |\n| max-cache | - |\n| @statechange | - |\n| @fullscreenchange | - |\n| @netstatus | - |"},"live-pusher":{"name":"## live-pusher","description":"实时音视频录制","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| url | - |\n| mode | - |\n| autopush | - |\n| muted | - |\n| enable-camera | - |\n| auto-focus | - |\n| orientation | - |\n| beauty | - |\n| aspect | - |\n| min-bitrate | - |\n| max-bitrate | - |\n| waiting-image | - |\n| waiting-image-md5 | - |\n| background-mute | - |\n| @statechange | - |\n| @error | - |\n| @netstatus | - |"},"audio":{"name":"## audio","description":"音频","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| loop | - |\n| src | - |\n| controls | - |\n| poster | - |\n| name | - |\n| author | - |\n| @error | - |\n| @play | - |\n| @pause | - |\n| @timeupdate | - |\n| @ended | - |"},"page-meta":{"name":"## page-meta","description":"页面元数据,用于设置页面的一些属性,如背景色、下拉刷新等","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| background-text-style | - |\n| background-color | - |\n| background-color-top | - |\n| background-color-bottom | - |\n| scroll-top | - |\n| scroll-duration | - |\n| page-style | - |\n| root-font-size | - |\n| enable-pull-down-refresh | - |\n| @resize | - |\n| @scroll | - |\n| @scrolldone | - |"},"map":{"name":"## map","description":"地图","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| longitude | - |\n| latitude | - |\n| scale | - |\n| markers | - |\n| covers | - |\n| polyline | - |\n| circles | - |\n| controls | - |\n| include-points | - |\n| show-location | - |\n| @markertap | - |\n| @callouttap | - |\n| @controltap | - |\n| @regionchange | - |\n| @updated | - |"},"canvas":{"name":"## canvas","description":"画布","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n"},"web-view":{"name":"## web-view","description":"承载网页的容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| src | HBuilderX 4.23 |\n| allow | x |\n| sandbox | x |\n| fullscreen | x |\n| @message | HBuilderX 4.23 |"},"navigation-bar":{"name":"## navigation-bar","description":"页面导航条配置节点","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| title | - |\n| title-icon | - |\n| titleIcon-radius | - |\n| subtitle-text | - |\n| subtitle-size | - |\n| subtitle-color | - |\n| subtitle-overflow | - |\n| title-align | - |\n| background-image | - |\n| background-repeat | - |\n| blur-effect | - |\n| loading | - |\n| front-color | - |\n| background-color | - |\n| color-animation-duration | - |\n| color-animation-timing-func | - |"},"custom-tab-bar":{"name":"## custom-tab-bar","description":"自定义tabBar","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | - |\n| show-icon | - |\n| selected | - |\n| @onTabItemTap | - |"},"unicloud-db":{"name":"## unicloud-db","description":"是一个数据库查询组件,它将clientDB的API封装为组件,进一步减少开发者使用所需的代码量。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - |\n| v-slot:default | - |\n| collection | - |\n| field | - |\n| where | - |\n| orderby | - |\n| groupby | - |\n| group-field | - |\n| distinct | - |\n| page-data | - |\n| page-current | - |\n| page-size | - |\n| getone | - |\n| getcount | - |\n| gettree | - |\n| startwith | - |\n| limitlevel | - |\n| manual | - |\n| loadtime | - |\n| @load | - |\n| @error | - |\n| action | - |"}} \ No newline at end of file +{"view":{"name":"## view","description":"基本视图容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| hover-class | HBuilderX 4.23 |\n| hover-stop-propagation | HBuilderX 4.23 |\n| hover-start-time | HBuilderX 4.23 |\n| hover-stay-time | HBuilderX 4.23 |"},"scroll-view":{"name":"## scroll-view","description":"可滚动视图容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | HBuilderX 4.23 |\n| upper-threshold | HBuilderX 4.23 |\n| lower-threshold | HBuilderX 4.23 |\n| scroll-top | HBuilderX 4.23 |\n| scroll-left | HBuilderX 4.23 |\n| scroll-into-view | HBuilderX 4.23 |\n| scroll-with-animation | HBuilderX 4.23 |\n| refresher-enabled | HBuilderX 4.23 |\n| refresher-threshold | HBuilderX 4.23 |\n| refresher-default-style | HBuilderX 4.23 |\n| refresher-background | HBuilderX 4.23 |\n| refresher-triggered | HBuilderX 4.23 |\n| show-scrollbar | HBuilderX 4.23 |\n| @refresherpulling | HBuilderX 4.23 |\n| @refresherrefresh | HBuilderX 4.23 |\n| @refresherrestore | HBuilderX 4.23 |\n| @refresherabort | HBuilderX 4.23 |\n| @scrolltoupper | HBuilderX 4.23 |\n| @scrolltolower | HBuilderX 4.23 |\n| @scroll | HBuilderX 4.23 |\n| rebound | - |\n| scroll-y | HBuilderX 4.23 |\n| scroll-x | HBuilderX 4.23 |"},"swiper-item":{"name":"## swiper-item","description":"swiper的唯一合法子组件。每个swiper-item代表一个滑块。宽高自动设置为100%","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| item-id | - |"},"swiper":{"name":"## swiper","description":"滑块视图容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| indicator-dots | HBuilderX 4.23 |\n| indicator-color | HBuilderX 4.23 |\n| indicator-active-color | HBuilderX 4.23 |\n| active-class | - |\n| changing-class | - |\n| acceleration | - |\n| disable-programmatic-animation | - |\n| disable-touch | - |\n| touchable | - |\n| easing-function | - |\n| autoplay | HBuilderX 4.23 |\n| current | HBuilderX 4.23 |\n| current-item-id | HBuilderX 4.23 |\n| interval | HBuilderX 4.23 |\n| duration | HBuilderX 4.23 |\n| circular | HBuilderX 4.23 |\n| vertical | HBuilderX 4.23 |\n| rebound | - |\n| previous-margin | - |\n| next-margin | - |\n| display-multiple-items | - |\n| skip-hidden-item-layout | - |\n| @change | HBuilderX 4.23 |\n| @transition | HBuilderX 4.23 |\n| @animationfinish | HBuilderX 4.23 |"},"match-media":{"name":"## match-media","description":"media query 匹配检测节点","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.28 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| width | - |\n| min-width | - |\n| max-width | - |\n| height | - |\n| min-height | - |\n| max-height | - |\n| orientation | - |"},"movable-area":{"name":"## movable-area","description":"movable-view 的可移动区域","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n"},"movable-view":{"name":"## movable-view","description":"可移动的视图容器,在页面中可以拖拽滑动","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | HBuilderX 4.23 |\n| inertia | HBuilderX 4.23 |\n| out-of-bounds | HBuilderX 4.23 |\n| x | HBuilderX 4.23 |\n| y | HBuilderX 4.23 |\n| damping | HBuilderX 4.23 |\n| friction | HBuilderX 4.23 |\n| disabled | HBuilderX 4.23 |\n| scale | HBuilderX 4.23 |\n| scale-min | HBuilderX 4.23 |\n| scale-max | HBuilderX 4.23 |\n| scale-value | HBuilderX 4.23 |\n| animation | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |\n| @scale | HBuilderX 4.23 |"},"cover-view":{"name":"## cover-view","description":"覆盖在原生组件之上的文本视图,可覆盖的原生组件包括map、video、canvas、camera,只支持嵌套cover-view、cover-image","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.28 |\n"},"cover-image":{"name":"## cover-image","description":"覆盖在原生组件之上的图片视图,可覆盖的原生组件同cover-view,支持嵌套在cover-view里。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.28 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| v-for | - |\n| v-if | - |\n| v-show | - |\n| src | - |"},"list-item":{"name":"## list-item","description":"list-view组件的唯一合法子组件。每个item是一行","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | - |"},"sticky-header":{"name":"## sticky-header","description":"吸顶布局容器

注意:暂时仅支持作为list-view、sticky-section的子节点, sticky-header不支持css样式!当一个容器视图设置多个sticky-header时,后一个sticky-header会停靠在前一个sticky-header的末尾处。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"sticky-section":{"name":"## sticky-section","description":"吸顶布局容器

注意:暂时仅支持作为list-view的子节点, sticky-section不支持css样式!","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"list-view":{"name":"## list-view","description":"列表组件","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"nested-scroll-header":{"name":"## nested-scroll-header","description":" scroll-view 嵌套模式场景中属于外层 scroll-view 的节点,仅支持作为 \\ 嵌套模式的直接子节点。不支持复数子节点,渲染时会取其第一个子节点来渲染","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"nested-scroll-body":{"name":"## nested-scroll-body","description":" scroll-view 嵌套模式场景中属于嵌套内层 scroll-view 的父节点,仅支持作为 \\ 嵌套模式的直接子节点。不支持复数子节点,渲染时会取其第一个子节点来渲染","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"icon":{"name":"## icon","description":"图标","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| type | HBuilderX 4.23 |\n| size | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"text":{"name":"## text","description":"文本","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| selectable | HBuilderX 4.23 |\n| space | HBuilderX 4.23 |\n| decode | HBuilderX 4.23 |"},"rich-text":{"name":"## rich-text","description":"富文本。可渲染文字样式、图片、超链接。支持部分HTML标签","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| nodes | HBuilderX 4.23 |\n| selectable | HBuilderX 4.23 |\n| @itemclick | HBuilderX 4.23 |"},"progress":{"name":"## progress","description":"进度条","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| duration | HBuilderX 4.23 |\n| percent | HBuilderX 4.23 |\n| show-info | HBuilderX 4.23 |\n| stroke-width | HBuilderX 4.23 |\n| activeColor | HBuilderX 4.23 |\n| backgroundColor | HBuilderX 4.23 |\n| active | HBuilderX 4.23 |\n| active-mode | HBuilderX 4.23 |"},"native-view":{"name":"## native-view","description":"自定义原生View组件","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"button":{"name":"## button","description":"按钮","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| hover-class | HBuilderX 4.23 |\n| hover-start-time | HBuilderX 4.23 |\n| hover-stay-time | HBuilderX 4.23 |\n| size | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| plain | HBuilderX 4.23 |\n| loading | HBuilderX 4.23 |\n| form-type | HBuilderX 4.23 |\n| open-type | - |\n| @error | - |\n| @chooseinvoicetitle | - |\n| @subscribe | - |\n| @login | - |"},"checkbox":{"name":"## checkbox","description":"多选项。在1组check-group中可选择多个","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| checked | HBuilderX 4.23 |\n| backgroundColor | HBuilderX 4.23 |\n| borderColor | HBuilderX 4.23 |\n| activeBackgroundColor | HBuilderX 4.23 |\n| activeBorderColor | HBuilderX 4.23 |\n| iconColor | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"checkbox-group":{"name":"## checkbox-group","description":"多选框组","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |"},"form":{"name":"## form","description":"表单","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| @submit | HBuilderX 4.23 |\n| @reset | HBuilderX 4.23 |"},"input":{"name":"## input","description":"输入框","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| disabled | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| password | HBuilderX 4.23 |\n| placeholder | HBuilderX 4.23 |\n| placeholder-style | HBuilderX 4.23 |\n| placeholder-class | HBuilderX 4.23 |\n| maxlength | HBuilderX 4.23 |\n| cursor-color | HBuilderX 4.23 |\n| auto-focus | HBuilderX 4.23 |\n| focus | HBuilderX 4.23 |\n| confirm-type | HBuilderX 4.23 |\n| confirm-hold | HBuilderX 4.23 |\n| cursor | HBuilderX 4.23 |\n| selection-start | HBuilderX 4.23 |\n| selection-end | HBuilderX 4.23 |\n| inputmode | HBuilderX 4.23 |\n| @input | HBuilderX 4.23 |\n| @focus | HBuilderX 4.23 |\n| @blur | HBuilderX 4.23 |\n| @confirm | HBuilderX 4.23 |"},"editor":{"name":"## editor","description":"富文本编辑器,可以对图片、文字进行编辑。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| read-only | - |\n| placeholder | - |\n| show-img-size | - |\n| show-img-toolbar | - |\n| show-img-resize | - |\n| @ready | - |\n| @focus | - |\n| @blur | - |\n| @input | - |\n| @statuschange | - |"},"label":{"name":"## label","description":"用来改进表单组件的可用性,使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| for | HBuilderX 4.23 |"},"picker":{"name":"## picker","description":"从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | - |\n| mode | - |\n| range | - |\n| range-key | - |\n| value | - |\n| start | - |\n| end | - |\n| fields | - |\n| custom-item | - |\n| @change | - |\n| @columnchange | - |\n| @cancel | - |"},"picker-view-column":{"name":"## picker-view-column","description":"仅可放置于 picker-view 中,其子节点未继承 picker-view 的选中框的高度,需要自己设置高度并居中","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n"},"picker-view":{"name":"## picker-view","description":"嵌入页面的滚动选择器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| value | HBuilderX 4.23 |\n| indicator-style | HBuilderX 4.23 |\n| indicator-class | HBuilderX 4.23 |\n| mask-style | HBuilderX 4.23 |\n| mask-class | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |"},"radio":{"name":"## radio","description":"单选项。在1组radio-group中只能选中1个","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| disabled | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| checked | HBuilderX 4.23 |\n| backgroundColor | HBuilderX 4.23 |\n| borderColor | HBuilderX 4.23 |\n| activeBackgroundColor | HBuilderX 4.23 |\n| activeBorderColor | HBuilderX 4.23 |\n| iconColor | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"radio-group":{"name":"## radio-group","description":"单选框组","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |"},"slider":{"name":"## slider","description":"滑动选择器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | - |\n| disabled | - |\n| min | - |\n| max | - |\n| step | - |\n| value | - |\n| backgroundColor | - |\n| block-size | - |\n| show-value | - |\n| @change | - |\n| @changing | - |\n| block-color | - |\n| activeColor | - |"},"switch":{"name":"## switch","description":"开关选择器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| checked | HBuilderX 4.23 |\n| type | HBuilderX 4.23 |\n| disabled | HBuilderX 4.23 |\n| @change | HBuilderX 4.23 |\n| color | HBuilderX 4.23 |"},"textarea":{"name":"## textarea","description":"多行输入框","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| name | HBuilderX 4.23 |\n| value | HBuilderX 4.23 |\n| placeholder | HBuilderX 4.23 |\n| placeholder-style | HBuilderX 4.23 |\n| placeholder-class | HBuilderX 4.23 |\n| maxlength | HBuilderX 4.23 |\n| auto-focus | HBuilderX 4.23 |\n| focus | HBuilderX 4.23 |\n| confirm-type | HBuilderX 4.23 |\n| cursor | HBuilderX 4.23 |\n| confirm-hold | HBuilderX 4.23 |\n| auto-height | HBuilderX 4.23 |\n| cursor-color | - |\n| selection-start | HBuilderX 4.23 |\n| selection-end | HBuilderX 4.23 |\n| inputmode | - |\n| @confirm | HBuilderX 4.23 |\n| @input | HBuilderX 4.23 |\n| @linechange | HBuilderX 4.23 |\n| @blur | HBuilderX 4.23 |\n| @focus | HBuilderX 4.23 |"},"navigator":{"name":"## navigator","description":"页面链接","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| target | HBuilderX 4.23 |\n| url | HBuilderX 4.23 |\n| open-type | HBuilderX 4.23 |\n| delta | HBuilderX 4.23 |\n| app-id | - |\n| path | HBuilderX 4.23 |\n| extra-data | - |\n| version | - |\n| animation-type | HBuilderX 4.23 |\n| animation-duration | HBuilderX 4.23 |\n| hover-class | - |\n| hover-stop-propagation | - |\n| hover-start-time | - |\n| hover-stay-time | - |\n| render-link | HBuilderX 4.23 |"},"image":{"name":"## image","description":"图片","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| src | HBuilderX 4.23 |\n| mode | HBuilderX 4.23 |\n| draggable | HBuilderX 4.23 |\n| @error | HBuilderX 4.23 |\n| @load | HBuilderX 4.23 |"},"video":{"name":"## video","description":"视频","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| loop | HBuilderX 4.23 |\n| src | HBuilderX 4.23 |\n| initial-time | HBuilderX 4.23 |\n| duration | HBuilderX 4.23 |\n| controls | HBuilderX 4.23 |\n| danmu-list | HBuilderX 4.23 |\n| danmu-btn | HBuilderX 4.23 |\n| enable-danmu | HBuilderX 4.23 |\n| autoplay | HBuilderX 4.23 |\n| muted | HBuilderX 4.23 |\n| page-gesture | HBuilderX 4.23 |\n| direction | HBuilderX 4.23 |\n| show-progress | HBuilderX 4.23 |\n| show-fullscreen-btn | HBuilderX 4.23 |\n| show-play-btn | HBuilderX 4.23 |\n| show-center-play-btn | HBuilderX 4.23 |\n| show-loading | HBuilderX 4.23 |\n| enable-progress-gesture | HBuilderX 4.23 |\n| object-fit | HBuilderX 4.23 |\n| poster | HBuilderX 4.23 |\n| show-mute-btn | HBuilderX 4.23 |\n| title | HBuilderX 4.23 |\n| play-btn-position | HBuilderX 4.23 |\n| enable-play-gesture | HBuilderX 4.23 |\n| auto-pause-if-navigate | HBuilderX 4.23 |\n| auto-pause-if-open-native | HBuilderX 4.23 |\n| vslide-gesture | HBuilderX 4.23 |\n| vslide-gesture-in-fullscreen | HBuilderX 4.23 |\n| poster-for-crawler | HBuilderX 4.23 |\n| play-strategy | HBuilderX 4.23 |\n| is-live | HBuilderX 4.23 |\n| @loadedmetadata | HBuilderX 4.23 |\n| @play | HBuilderX 4.23 |\n| @pause | HBuilderX 4.23 |\n| @ended | HBuilderX 4.23 |\n| @timeupdate | HBuilderX 4.23 |\n| @fullscreenchange | HBuilderX 4.23 |\n| @waiting | HBuilderX 4.23 |\n| @error | HBuilderX 4.23 |\n| @progress | HBuilderX 4.23 |\n| @fullscreenclick | HBuilderX 4.23 |\n| @controlstoggle | HBuilderX 4.23 |"},"animation-view":{"name":"## animation-view","description":"Lottie 动画\n> 本 Component 是 uni ext component,需下载插件:[animation-view](https://ext.dcloud.net.cn/plugin?name=uni-animation-view)\n","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n"},"live-player":{"name":"## live-player","description":"实时音视频播放","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.28 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| src | - |\n| mode | - |\n| autoplay | - |\n| muted | - |\n| orientation | - |\n| object-fit | - |\n| background-mute | - |\n| min-cache | - |\n| max-cache | - |\n| @statechange | - |\n| @fullscreenchange | - |\n| @netstatus | - |"},"live-pusher":{"name":"## live-pusher","description":"实时音视频录制","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| url | - |\n| mode | - |\n| autopush | - |\n| muted | - |\n| enable-camera | - |\n| auto-focus | - |\n| orientation | - |\n| beauty | - |\n| aspect | - |\n| min-bitrate | - |\n| max-bitrate | - |\n| waiting-image | - |\n| waiting-image-md5 | - |\n| background-mute | - |\n| @statechange | - |\n| @error | - |\n| @netstatus | - |"},"audio":{"name":"## audio","description":"音频","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| loop | - |\n| src | - |\n| controls | - |\n| poster | - |\n| name | - |\n| author | - |\n| @error | - |\n| @play | - |\n| @pause | - |\n| @timeupdate | - |\n| @ended | - |"},"page-meta":{"name":"## page-meta","description":"页面元数据,用于设置页面的一些属性,如背景色、下拉刷新等","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| background-text-style | - |\n| background-color | - |\n| background-color-top | - |\n| background-color-bottom | - |\n| scroll-top | - |\n| scroll-duration | - |\n| page-style | - |\n| root-font-size | - |\n| enable-pull-down-refresh | - |\n| @resize | - |\n| @scroll | - |\n| @scrolldone | - |"},"map":{"name":"## map","description":"地图","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.25 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| longitude | - |\n| latitude | - |\n| scale | - |\n| markers | - |\n| covers | - |\n| polyline | - |\n| circles | - |\n| controls | - |\n| include-points | - |\n| show-location | - |\n| @markertap | - |\n| @callouttap | - |\n| @controltap | - |\n| @regionchange | - |\n| @updated | - |\n| @tap | - |\n| @anchorpointtap | - |\n| @poitap | - |"},"canvas":{"name":"## canvas","description":"画布","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n"},"ad":{"name":"## ad","description":"广告","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| adpid | x |\n| @load | x |\n| @close | x |\n| @error | x |"},"web-view":{"name":"## web-view","description":"承载网页的容器","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| HBuilderX 4.23 |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| src | HBuilderX 4.23 |\n| allow | x |\n| sandbox | x |\n| fullscreen | x |\n| @message | HBuilderX 4.23 |"},"navigation-bar":{"name":"## navigation-bar","description":"页面导航条配置节点","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| title | - |\n| title-icon | - |\n| titleIcon-radius | - |\n| subtitle-text | - |\n| subtitle-size | - |\n| subtitle-color | - |\n| subtitle-overflow | - |\n| title-align | - |\n| background-image | - |\n| background-repeat | - |\n| blur-effect | - |\n| loading | - |\n| front-color | - |\n| background-color | - |\n| color-animation-duration | - |\n| color-animation-timing-func | - |"},"custom-tab-bar":{"name":"## custom-tab-bar","description":"自定义tabBar","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| direction | - |\n| show-icon | - |\n| selected | - |\n| @onTabItemTap | - |"},"unicloud-db":{"name":"## unicloud-db","description":"是一个数据库查询组件,它将clientDB的API封装为组件,进一步减少开发者使用所需的代码量。","compatibility":"\n**HarmonyOS Next** 兼容性\n| HarmonyOS Next |\n| :- |\n| x |\n","attribute":"**属性 HarmonyOS Next 兼容性** \n | 名称 | HarmonyOS Next 兼容性 |\n| :- | :- |\n| id | - |\n| v-slot:default | - |\n| collection | - |\n| field | - |\n| where | - |\n| orderby | - |\n| groupby | - |\n| group-field | - |\n| distinct | - |\n| page-data | - |\n| page-current | - |\n| page-size | - |\n| getone | - |\n| getcount | - |\n| gettree | - |\n| startwith | - |\n| limitlevel | - |\n| manual | - |\n| loadtime | - |\n| @load | - |\n| @error | - |\n| action | - |"}} \ No newline at end of file diff --git a/docs/api/canvas/CanvasContext.md b/docs/api/canvas/CanvasContext.md index 6d043e3cfc7adc97caf950f05366dc956b0f757a..7c2fd3bfd0f131648eed2b823cd8c141963593f9 100644 --- a/docs/api/canvas/CanvasContext.md +++ b/docs/api/canvas/CanvasContext.md @@ -2,9 +2,9 @@ **平台差异说明** -|App|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| -|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|√|√|√|√|√|√|√|√|√| +|App|HarmonyOS Next|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|√|HBuilderX 4.23|√|√|√|√|√|√|√|√| App-nvue下如需使用canvas,暂未封装为uni API,可参考[文档](https://github.com/dcloudio/NvueCanvasDemo)使用。 diff --git a/docs/api/ui/bgcolor.md b/docs/api/ui/bgcolor.md index ad139ec29e1e8b51f4e5146f0c641123baca148f..816bf0910d6c5ca659c94285a92b654751f96f18 100644 --- a/docs/api/ui/bgcolor.md +++ b/docs/api/ui/bgcolor.md @@ -4,9 +4,9 @@ **平台差异说明** -|App|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| -|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|x|x|√|x|√|x|√|√|√| +|App|HarmonyOS Next|Web|微信小程序|支付宝小程序|百度小程序|抖音小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|x|HBuilderX 4.31|x|√|x|√|x|√|√|√| **参数说明** @@ -35,9 +35,9 @@ uni.setBackgroundColor({ **平台差异说明** -|App|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| -|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|x|x|√|x|√|x|√|√|√| +|App|HarmonyOS Next|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|x|HBuilderX 4.31|x|√|x|√|x|√|√|√| **参数说明** diff --git a/docs/api/ui/media-query-observer.md b/docs/api/ui/media-query-observer.md index c9dd4b55eb13225d4de44e907445fe048c389146..4d3c3a39be5eea65e76bdb63d1e16da34ed64bf1 100644 --- a/docs/api/ui/media-query-observer.md +++ b/docs/api/ui/media-query-observer.md @@ -11,7 +11,7 @@ MediaQueryObserver 对象,用于监听页面 media query 状态的变化,如 |App|HarmonyOS Next|微信小程序|H5|支付宝小程序|qq小程序|百度小程序|抖音小程序|飞书小程序|360小程序|快应用| |:-|:-|:-|:-|:-|:-|:-|:-|:-|:-|:-| -|2.8.12+,app-vue|x|基础库 2.11.1+|√|√|√|√|√|x|√|x| +|2.8.12+,app-vue|HBuilderX 4.28|基础库 2.11.1+|√|√|√|√|√|x|√|x| 注意:支付宝小程序、qq小程序、百度小程序、抖音小程序,暂不支持监听屏幕动态改变,即只执行一次媒体查询。 diff --git a/docs/api/ui/navigationbar.md b/docs/api/ui/navigationbar.md index 75544bdbbbe14ddb5c47dccf621cdb54493c9ad2..b630201775cc3a7742e22ce37950f4a8f7ea3f9a 100644 --- a/docs/api/ui/navigationbar.md +++ b/docs/api/ui/navigationbar.md @@ -101,9 +101,9 @@ uni.setNavigationBarColor({ **平台差异说明** -|App|HarmonyOS Next|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序|飞书小程序|QQ小程序|快手小程序|京东小程序| -|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|x|x|√|√|√|√|1.48.0+|x|√|√|√| +|App|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序|飞书小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|x|√|√|√|√|1.48.0+|x|√|√|√| @@ -129,9 +129,9 @@ uni.showNavigationBarLoading() **平台差异说明** -|App|HarmonyOS Next|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序|飞书小程序|QQ小程序|快手小程序|京东小程序| -|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|x|x|√|√|√|√|1.48.0+|x|√|√|√| +|App|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序|飞书小程序|QQ小程序|快手小程序|京东小程序| +|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| +|x|√|√|√|√|1.48.0+|x|√|√|√| diff --git a/docs/api/ui/window.md b/docs/api/ui/window.md index 05716a21c1b1e0e3cddf62974d1f5872adc3499d..1b5d825e7ac8b29feed212144c2a0691ca37c410 100644 --- a/docs/api/ui/window.md +++ b/docs/api/ui/window.md @@ -7,7 +7,7 @@ |App|HarmonyOS Next|H5|微信小程序 |支付宝小程序|百度小程序|抖音小程序|飞书小程序|QQ小程序| |:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|√|x|√|√|x|x|x|√|√| +|√|HBuilderX 4.25|√|√|x|x|x|√|√| **CALLBACK 参数说明** @@ -38,7 +38,7 @@ uni.onWindowResize(windowResizeCallback) |App|HarmonyOS Next|H5|微信小程序|支付宝小程序|百度小程序|抖音小程序|飞书小程序| |:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|√|x|√|√|x|x|x|√| +|√|HBuilderX 4.31|√|√|x|x|x|√| **Tips** - `CALLBACK`为调用`uni.onWindowResize`时传入的`CALLBACK`