提交 31934652 编写于 作者: Z zengyawen 提交者: Gitee

Merge branch 'master' of gitee.com:openharmony/docs into master

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
......@@ -70,14 +70,14 @@ FormExtensionAbility类拥有如下API接口,具体的API介绍详见[接口
FormExtensionAbility类还拥有成员context,为FormExtensionContext类,具体的API介绍详见[接口文档](../reference/apis/js-apis-inner-application-formExtensionContext.md)
| 接口名 | 描述 |
| 接口名 | 描述 |
| -------- | -------- |
| startAbility(want:&nbsp;Want,&nbsp;callback:&nbsp;AsyncCallback&lt;void&gt;):&nbsp;void | 回调形式拉起一个卡片所属应用的UIAbility(系统接口,三方应用不支持调用,需申请后台拉起权限)。 |
| startAbility(want:&nbsp;Want):&nbsp;Promise&lt;void&gt; | Promise形式拉起一个卡片所属应用的UIAbility(系统接口,三方应用不支持调用,需申请后台拉起权限)。 |
formProvider类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formProvider.md)
| 接口名 | 描述 |
| 接口名 | 描述 |
| -------- | -------- |
| setFormNextRefreshTime(formId:&nbsp;string,&nbsp;minute:&nbsp;number,&nbsp;callback:&nbsp;AsyncCallback&lt;void&gt;):&nbsp;void; | 设置指定卡片的下一次更新时间。 |
| setFormNextRefreshTime(formId:&nbsp;string,&nbsp;minute:&nbsp;number):&nbsp;Promise&lt;void&gt;; | 设置指定卡片的下一次更新时间,以promise方式返回。 |
......@@ -86,7 +86,7 @@ formProvider类有如下API接口,具体的API介绍详见[接口文档](../re
formBindingData类有如下API接口,具体的API介绍详见[接口文档](../reference/apis/js-apis-app-form-formBindingData.md)
| 接口名 | 描述 |
| 接口名 | 描述 |
| -------- | -------- |
| createFormBindingData(obj?:&nbsp;Object&nbsp;\|&nbsp;string):&nbsp;FormBindingData | 创建一个FormBindingData对象。 |
......@@ -452,7 +452,7 @@ onUpdateForm(formId) {
### 开发卡片事件
卡片支持为组件设置交互事件(action),包括router事件和message事件,其中router事件用于Ability跳转,message事件用于卡片开发人员自定义点击事件。
卡片支持为组件设置交互事件(action),包括**router**事件和**message**事件,其中router事件用于Ability跳转,message事件用于卡片开发人员自定义点击事件。
关键步骤说明如下:
......@@ -539,19 +539,60 @@ onUpdateForm(formId) {
"action": "router",
"abilityName": "EntryAbility",
"params": {
"message": "add detail"
"info": "router info",
"message": "router message"
}
},
"messageEvent": {
"action": "message",
"params": {
"message": "add detail"
"detail": "message detail"
}
}
}
}
```
- 在UIAbility中接收router事件并获取参数
```ts
import UIAbility from '@ohos.app.ability.UIAbility'
export default class EntryAbility extends UIAbility {
onCreate(want, launchParam) {
// 获取router事件中传递的info参数
if (want.parameters.info === "router info") {
// do something
// console.log("router info:" + want.parameters.info)
}
// 获取router事件中传递的message参数
if (want.parameters.message === "router message") {
// do something
// console.log("router message:" + want.parameters.message)
}
}
// ...
};
```
- 在FormExtensionAbility中接收message事件并获取参数
```ts
import FormExtension from '@ohos.app.form.FormExtensionAbility';
export default class FormAbility extends FormExtension {
// ...
onFormEvent(formId, message) {
// 获取message事件中传递的detail参数
let msg = JSON.parse(message)
if (msg.params.detail === "message detail") {
// do something
// console.log("message info:" + msg.params.detail)
}
}
// ...
};
```
## 相关实例
......
# BundleStatusCallback
# bundleStatusCallback (BundleStatusCallback)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 从API version 9开始不再支持。建议使用[bundleMonitor](js-apis-bundleMonitor.md)替代。
......
# innerBundleManager模块<sup>(deprecated)</sup>
# @ohos.bundle.innerBundleManager (innerBundleManager模块)
本模块提供launcher应用使用的接口。
......
# distributedBundle模块(JS端SDK接口)
# @ohos.distributedBundle (分布式包管理)
本模块提供分布式包的管理。
......
# Bundle模块(JS端SDK接口)
# @ohos.bundle (Bundle模块)
本模块提供应用信息查询能力,支持[包信息](js-apis-bundle-BundleInfo.md)[应用信息](js-apis-bundle-ApplicationInfo.md)[Ability组件信息](js-apis-bundle-AbilityInfo.md)等信息的查询,以及应用禁用状态的查询、设置等。
......
# 延迟任务调度回调
# @ohos.workScheduler (延迟任务调度)
本模块提供延迟任务回调能力。
......
# TestRunner
# @ohos.application.testRunner (TestRunner)
TestRunner模块提供了框架测试的能力。包括准备单元测试环境、运行测试用例。
......
# 线性容器ArrayList
# @ohos.util.ArrayList (线性容器ArrayList)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
......@@ -28,7 +28,7 @@ createAVSession(context: Context, tag: string, type: AVSessionType): Promise\<AV
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------------------------------- | ---- | ------------------------------ |
| context| [Context](../../ability/context-userguide.md) | 是| 应用上下文,提供获取应用程序环境信息的能力。 |
| context| [Context](../../reference/apis/js-apis-inner-app-context.md) | 是| 应用上下文,提供获取应用程序环境信息的能力。 |
| tag | string | 是 | 会话的自定义名称。 |
| type | [AVSessionType](#avsessiontype) | 是 | 会话类型,当前支持音频和视频。 |
......@@ -45,7 +45,7 @@ createAVSession(context: Context, tag: string, type: AVSessionType): Promise\<AV
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -76,7 +76,7 @@ createAVSession(context: Context, tag: string, type: AVSessionType, callback: As
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| context| [Context](../../ability/context-userguide.md) | 是| 应用上下文,提供获取应用程序环境信息的能力。 |
| context| [Context](../../reference/apis/js-apis-inner-app-context.md) | 是| 应用上下文,提供获取应用程序环境信息的能力。 |
| tag | string | 是 | 会话的自定义名称。 |
| type | [AVSessionType](#avsessiontype) | 是 | 会话类型,当前支持音频和视频。 |
| callback | AsyncCallback<[AVSession](#avsession)\> | 是 | 回调函数。回调返回会话实例对象,可用于获取会话ID,以及设置元数据、播放状态,发送按键事件等操作。 |
......@@ -86,7 +86,7 @@ createAVSession(context: Context, tag: string, type: AVSessionType, callback: As
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -130,7 +130,7 @@ getAllSessionDescriptors(): Promise\<Array\<Readonly\<AVSessionDescriptor>>>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -170,7 +170,7 @@ getAllSessionDescriptors(callback: AsyncCallback\<Array\<Readonly\<AVSessionDesc
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 |Session service exception |
| 6600101 |Session service exception. |
**示例:**
......@@ -218,8 +218,8 @@ createController(sessionId: string): Promise\<AVSessionController>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -270,8 +270,8 @@ createController(sessionId: string, callback: AsyncCallback\<AVSessionController
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -332,9 +332,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array<audio.AudioDeviceDe
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600104 | The remote session connection failed |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600104 | The remote session connection failed. |
**示例:**
......@@ -384,9 +384,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array<audio.AudioDeviceDe
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600104 | The remote session connection failed |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600104 | The remote session connection failed. |
**示例:**
......@@ -435,7 +435,7 @@ on(type: 'sessionCreate' | 'sessionDestroy' | 'topSessionChange', callback: (ses
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -483,7 +483,7 @@ off(type: 'sessionCreate' | 'sessionDestroy' | 'topSessionChange', callback?: (s
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -513,7 +513,7 @@ on(type: 'sessionServiceDie', callback: () => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -543,7 +543,7 @@ off(type: 'sessionServiceDie', callback?: () => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -580,8 +580,8 @@ sendSystemAVKeyEvent(event: KeyEvent): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600105 | Invalid session command |
| 6600101 | Session service exception. |
| 6600105 | Invalid session command. |
**示例:**
......@@ -622,8 +622,8 @@ sendSystemAVKeyEvent(event: KeyEvent, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600105 | Invalid session command |
| 6600101 | Session service exception. |
| 6600105 | Invalid session command. |
**示例:**
......@@ -669,9 +669,9 @@ sendSystemControlCommand(command: AVControlCommand): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600105 | Invalid session command |
| 6600107 | Command or event overload |
| 6600101 | Session service exception. |
| 6600105 | Invalid session command. |
| 6600107 | Too many commands or events. |
**示例:**
......@@ -723,9 +723,9 @@ sendSystemControlCommand(command: AVControlCommand, callback: AsyncCallback\<voi
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600105 | Invalid session command |
| 6600107 | Command or event overload |
| 6600101 | Session service exception. |
| 6600105 | Invalid session command. |
| 6600107 | Too many commands or events. |
**示例:**
......@@ -799,8 +799,8 @@ setAVMetadata(data: AVMetadata): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -848,8 +848,8 @@ setAVMetadata(data: AVMetadata, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -904,8 +904,8 @@ setAVPlaybackState(state: AVPlaybackState): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -945,8 +945,8 @@ setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -993,8 +993,8 @@ setLaunchAbility(ability: WantAgent): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1058,8 +1058,8 @@ setLaunchAbility(ability: WantAgent, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1124,8 +1124,8 @@ getController(): Promise\<AVSessionController>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1158,8 +1158,8 @@ getController(callback: AsyncCallback\<AVSessionController>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1194,8 +1194,8 @@ getOutputDevice(): Promise\<OutputDeviceInfo>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1226,8 +1226,8 @@ getOutputDevice(callback: AsyncCallback\<OutputDeviceInfo>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1260,8 +1260,8 @@ activate(): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1292,8 +1292,8 @@ activate(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1326,8 +1326,8 @@ deactivate(): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1360,8 +1360,8 @@ deactivate(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1394,8 +1394,8 @@ destroy(): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1427,8 +1427,8 @@ destroy(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1462,8 +1462,8 @@ on(type: 'play'|'pause'|'stop'|'playNext'|'playPrevious'|'fastForward'|'rewind',
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1511,8 +1511,8 @@ on(type: 'seek', callback: (time: number) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
The session does not exist
......@@ -1542,8 +1542,8 @@ on(type: 'setSpeed', callback: (speed: number) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1573,8 +1573,8 @@ on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1604,8 +1604,8 @@ on(type: 'toggleFavorite', callback: (assetId: string) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1635,8 +1635,8 @@ on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1666,8 +1666,8 @@ on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): vo
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1697,8 +1697,8 @@ off(type: 'play' | 'pause' | 'stop' | 'playNext' | 'playPrevious' | 'fastForward
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1732,8 +1732,8 @@ off(type: 'seek', callback?: (time: number) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1761,8 +1761,8 @@ off(type: 'setSpeed', callback?: (speed: number) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1790,8 +1790,8 @@ off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1819,8 +1819,8 @@ off(type: 'toggleFavorite', callback?: (assetId: string) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1848,8 +1848,8 @@ off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1877,8 +1877,8 @@ off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void):
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
**示例:**
......@@ -1931,9 +1931,9 @@ getAVPlaybackState(): Promise\<AVPlaybackState>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
```js
......@@ -1963,9 +1963,9 @@ getAVPlaybackState(callback: AsyncCallback\<AVPlaybackState>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
```js
......@@ -1997,9 +1997,9 @@ getAVMetadata(): Promise\<AVMetadata>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
```js
......@@ -2029,9 +2029,9 @@ getAVMetadata(callback: AsyncCallback\<AVMetadata>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
```js
......@@ -2063,8 +2063,8 @@ getOutputDevice(): Promise\<OutputDeviceInfo>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
```js
......@@ -2094,8 +2094,8 @@ getOutputDevice(callback: AsyncCallback\<OutputDeviceInfo>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2128,11 +2128,11 @@ sendAVKeyEvent(event: KeyEvent): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600105 | Invalid session command |
| 6600106 | The session not active |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
| 6600105 | Invalid session command. |
| 6600106 | The session is not activated. |
**返回值:**
......@@ -2173,11 +2173,11 @@ sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600105 | Invalid session command |
| 6600106 | The session not active |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
| 6600105 | Invalid session command. |
| 6600106 | The session is not activated. |
**示例:**
......@@ -2213,9 +2213,9 @@ getLaunchAbility(): Promise\<WantAgent>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2248,9 +2248,9 @@ getLaunchAbility(callback: AsyncCallback\<WantAgent>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2285,8 +2285,8 @@ getRealPlaybackPositionSync(): number
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2313,9 +2313,9 @@ isActive(): Promise\<boolean>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2346,9 +2346,9 @@ isActive(callback: AsyncCallback\<boolean>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2381,8 +2381,8 @@ destroy(): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2413,8 +2413,8 @@ destroy(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2447,9 +2447,9 @@ getValidCommands(): Promise\<Array\<AVControlCommandType>>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2480,9 +2480,9 @@ getValidCommands(callback: AsyncCallback\<Array\<AVControlCommandType>>): void
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2521,12 +2521,12 @@ sendControlCommand(command: AVControlCommand): Promise\<void>
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600105 | Invalid session command |
| 6600106 | The session not active |
| 6600107 | Command or event overload |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
| 6600105 | Invalid session command. |
| 6600106 | The session is not activated. |
| 6600107 | Too many commands or events. |
**示例:**
......@@ -2569,12 +2569,12 @@ sendControlCommand(command: AVControlCommand, callback: AsyncCallback\<void>): v
| 错误码ID | 错误信息 |
| -------- | ------------------------------- |
| 6600101 | Session service exception |
| 6600102 | The session does not exist |
| 6600103 | The session controller does not exist |
| 6600105 | Invalid session command |
| 6600106 | The session not active |
| 6600107 | Command or event overload |
| 6600101 | Session service exception. |
| 6600102 | The session does not exist. |
| 6600103 | The session controller does not exist. |
| 6600105 | Invalid session command. |
| 6600106 | The session is not activated. |
| 6600107 | Too many commands or events. |
**示例:**
......@@ -2620,8 +2620,8 @@ on(type: 'metadataChange', filter: Array\<keyof AVMetadata> | 'all', callback: (
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2657,8 +2657,8 @@ on(type: 'playbackStateChange', filter: Array\<keyof AVPlaybackState> | 'all', c
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2693,8 +2693,8 @@ on(type: 'sessionDestroy', callback: () => void)
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2724,8 +2724,8 @@ on(type: 'activeStateChange', callback: (isActive: boolean) => void)
| 错误码ID | 错误信息 |
| -------- | ----------------------------- |
| 6600101 | Session service exception |
| 6600103 |The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 |The session controller does not exist. |
**示例:**
......@@ -2755,8 +2755,8 @@ on(type: 'validCommandChange', callback: (commands: Array\<AVControlCommandType>
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2787,8 +2787,8 @@ on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): vo
| 错误码ID | 错误信息 |
| -------- | ----------------------- |
| 6600101 | Session service exception |
| 6600103 | The session controller does not exist |
| 6600101 | Session service exception. |
| 6600103 | The session controller does not exist. |
**示例:**
......@@ -2818,7 +2818,7 @@ off(type: 'metadataChange', callback?: (data: AVMetadata) => void)
| 错误码ID | 错误信息 |
| -------- | ---------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -2846,7 +2846,7 @@ off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void)
| 错误码ID | 错误信息 |
| -------- | ---------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -2874,7 +2874,7 @@ off(type: 'sessionDestroy', callback?: () => void)
| 错误码ID | 错误信息 |
| -------- | ---------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -2902,7 +2902,7 @@ off(type: 'activeStateChange', callback?: (isActive: boolean) => void)
| 错误码ID | 错误信息 |
| -------- | ---------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -2930,7 +2930,7 @@ off(type: 'validCommandChange', callback?: (commands: Array\<AVControlCommandTyp
| 错误码ID | 错误信息 |
| -------- | ---------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -2958,7 +2958,7 @@ off(type: 'outputDeviceChange', callback?: (device: OutputDeviceInfo) => void):
| 错误码ID | 错误信息 |
| -------- | ---------------- |
| 6600101 | Session service exception |
| 6600101 | Session service exception. |
**示例:**
......@@ -3141,10 +3141,10 @@ controller.off('outputDeviceChange');
| 名称 | 值 | 说明 |
| ------------------------------ | ------- | ------------------------------- |
| ERR_CODE_SERVICE_EXCEPTION | 6600101 | Session service exception |
| ERR_CODE_SESSION_NOT_EXIST | 6600102 | The session does not exist |
| ERR_CODE_CONTROLLER_NOT_EXIST | 6600103 | The session controller does not exist |
| ERR_CODE_REMOTE_CONNECTION_ERR | 6600104 | The remote session connection failed |
| ERR_CODE_COMMAND_INVALID | 6600105 | Invalid session command |
| ERR_CODE_SESSION_INACTIVE | 6600106 | The session not active |
| ERR_CODE_MESSAGE_OVERLOAD | 6600107 | Command or event overload |
\ No newline at end of file
| ERR_CODE_SERVICE_EXCEPTION | 6600101 | Session service exception. |
| ERR_CODE_SESSION_NOT_EXIST | 6600102 | The session does not exist. |
| ERR_CODE_CONTROLLER_NOT_EXIST | 6600103 | The session controller does not exist. |
| ERR_CODE_REMOTE_CONNECTION_ERR | 6600104 | The remote session connection failed. |
| ERR_CODE_COMMAND_INVALID | 6600105 | Invalid session command. |
| ERR_CODE_SESSION_INACTIVE | 6600106 | The session is not activated. |
| ERR_CODE_MESSAGE_OVERLOAD | 6600107 | Too many commands or events. |
\ No newline at end of file
# 后台任务管理
# @ohos.backgroundTaskManager (后台任务管理)
本模块提供后台任务管理能力。
......
# Buffer
# @ohos.buffer (Buffer)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# AbilityInfo
# abilityInfo (AbilityInfo)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# ApplicationInfo
# applicationInfo (ApplicationInfo)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# BundleInfo
# bundleInfo (BundleInfo)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# BundleInstaller
# bundleInstaller (BundleInstaller)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# LauncherAbilityInfo
# launcherAbilityInfo (LauncherAbilityInfo)
......
# ModuleInfo
# moduleInfo (ModuleInfo)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# ShortcutInfo<sup>(deprecated)<sup>
# shortcutInfo (shortcutInfo)
......
# RemoteAbilityInfo
# remoteAbilityInfo (RemoteAbilityInfo)
......
# 性能打点
# @ohos.bytrace (性能打点)
本模块提供了追踪进程轨迹。
......
# xml转换JavaScript
# @ohos.convertxml (xml转换JavaScript)
本模块提供转换xml文本为JavaScript对象的选项。
......
# 轻量级存储
# @ohos.data.storage (轻量级存储)
轻量级存储为应用提供key-value键值型的文件数据处理能力,支持应用对数据进行轻量级存储及查询。数据存储形式为键值对,键的类型为字符串型,值的存储数据类型包括数字型、字符型、布尔型。
......
# 线性容器Deque
# @ohos.util.Deque (线性容器Deque)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 设备使用信息统计
# @ohos.bundleState (设备使用信息统计)
本模块提供设备使用信息统计能力。
......
# 分布式数据管理
# @ohos.data.distributedData (分布式数据管理)
分布式数据管理为应用程序提供不同设备间数据库的分布式协同能力。通过调用分布式数据各个接口,应用程序可将数据保存到分布式数据库中,并可对分布式数据库中的数据进行增加、删除、修改、查询、同步等操作。
......
# 文件交互
# @ohos.document (文件交互)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 非线性容器HashMap
# @ohos.util.HashMap (非线性容器HashMap)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 非线性容器HashSet
# @ohos.util.HashSet (非线性容器HashSet)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 应用打点
# @ohos.hiAppEvent (应用打点)
本模块提供了应用事件打点能力,包括对打点数据的落盘,以及对打点功能的管理配置。
......
# 非线性容器LightWeightMap
# @ohos.util.LightWeightMap (非线性容器LightWeightMap)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 非线性容器LightWeightSet
# @ohos.util.LightWeightSet (非线性容器LightWeightSet)@ohos.util.LightWeightSet (非线性容器LightWeightSet)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 线性容器LinkedList
# @ohos.util.LinkedList (线性容器LinkedList)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 线性容器List
# @ohos.util.List (线性容器List)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 非线性容器PlainArray
# @ohos.util.PlainArray (非线性容器PlainArray)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 获取进程相关的信息
# @ohos.process (获取进程相关的信息)
> **说明:**
>
......
# 弹窗
# @ohos.prompt (弹窗)
创建并显示文本提示框、对话框和操作菜单。
......
# 线性容器Queue
# @ohos.util.Queue (线性容器Queue)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 后台代理提醒
# @ohos.reminderAgent (后台代理提醒)
本模块提供后台代理提醒的能力。
......
......@@ -34,8 +34,9 @@ var config = {
在开发stage模型下的应用程序时,不涉及属性标识 "cleartextTraffic"。
下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败,可通过[on('fail')<sup>7+</sup>)](#onfail7)查看失败原因。
下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败,可通过[on('fail')<sup>7+</sup>](#onfail7)查看失败原因。
上传目前仅支持HTTP请求,不支持HTTPS。
## 常量
......@@ -105,7 +106,7 @@ uploadFile(context: BaseContext, config: UploadConfig): Promise&lt;UploadTask&gt
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -149,7 +150,7 @@ uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback&l
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -195,7 +196,7 @@ upload(config: UploadConfig): Promise&lt;UploadTask&gt;
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -235,7 +236,7 @@ upload(config: UploadConfig, callback: AsyncCallback&lt;UploadTask&gt;): void
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -281,7 +282,7 @@ upload(context: BaseContext, config: UploadConfig): Promise&lt;UploadTask&gt;
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......@@ -320,7 +321,7 @@ upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback&lt;Up
```js
let uploadTask;
let uploadConfig = {
url: 'https://patch',
url: 'http://patch',
header: { key1: "value1", key2: "value2" },
method: "POST",
files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }],
......
# 线性容器Stack
# @ohos.util.Stack (线性容器Stack)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 应用上下文
# @system.app (应用上下文)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口。
......
# 电量信息
# @system.battery (电量信息)
该模块提供充电状态及剩余电量的查询功能。
......
# 蓝牙
# @system.bluetooth (蓝牙)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
......
# 屏幕亮度
# @system.brightness (屏幕亮度)
该模块提供屏幕亮度和模式的查询、调节接口。
......
# 应用配置
# @system.configuration (应用配置)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.i18n`](js-apis-i18n.md)和[`@ohos.intl`](js-apis-intl.md)。
......
# 设备信息
# @system.device (设备信息)
本模块提供当前设备的信息。
......
# 数据请求
# @system.fetch (数据请求)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.net.http`](js-apis-http.md)。
......
# 文件存储
# @system.file (文件存储)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.fileio`](js-apis-fileio.md)。
......
# 地理位置
# @system.geolocation (地理位置)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.geolocation`](js-apis-geolocation.md)。
......
# 媒体查询
# @system.mediaquery (媒体查询)
提供根据不同媒体类型定义不同的样式。
......
# 网络状态
# @system.network (网络状态)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.telephony.observer`](js-apis-observer.md)。
......
# 通知消息
# @system.notification (通知消息)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.notification`](js-apis-notification.md)。
......
# 应用管理
# @system.package (应用管理)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
......
# 系统参数
# @ohos.systemParameter (系统属性)
系统参数(SystemParameter)是为各系统服务提供的简单易用的键值对访问接口,各个系统服务可以定义系统参数来描述该服务的状态信息,或者通过系统参数来改变系统服务的行为。其基本操作原语为get和set,通过get可以查询系统参数的值,通过set可以修改系统参数的值。
详细的系统参数设计原理及定义可参考
......
# 弹窗
# @system.prompt (弹窗)
创建并显示文本提示框、对话框和操作菜单。
......
# 上传下载
# @system.request (上传下载)
system.request部件主要给应用提供上传下载文件的基础能力。
......
# 页面路由
# @system.router (页面路由)
通过不同的uri访问不同的页面。
......
# 传感器
# @system.sensor (传感器)
## 模块说明
......
# 数据存储
# @system.storage (数据存储)
> **说明:**
>
......
# 振动
# @system.vibrator (振动)
## 模块说明
......
# 非线性容器TreeMap
# @ohos.util.TreeMap (非线性容器TreeMap)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 非线性容器TreeSet
# @ohos.util.TreeSet (非线性容器TreeSet)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# UiTest
# @ohos.uitest (UiTest)
UiTest提供模拟UI操作的能力,供开发者在测试场景使用,主要支持如点击、双击、长按、滑动等UI操作能力。
......
# URI字符串解析
# @ohos.uri (URI字符串解析)
> **说明:**
>
......
# URL字符串解析
# @ohos.url (URL字符串解析)
> **说明:**
>
......
# USB管理
# @ohos.usb (USB管理)
本模块主要提供管理USB设备的相关功能,包括查询USB设备列表、批量数据传输、控制命令传输、权限控制等。
......
# util工具函数
# @ohos.util (util工具函数)
该模块主要提供常用的工具函数,实现字符串编解码(TextEncoder,TextDecoder)、有理数运算(RationalNumber)、缓冲区管理(LruBuffer)、范围判断(Scope)、Base64编解码(Base64)、内置对象类型检查(Types)等功能。
......
# 线性容器Vector
# @ohos.util.Vector (线性容器Vector)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
# 启动一个Worker
# @ohos.worker (启动一个Worker)
Worker是与主线程并行的独立线程。创建Worker的线程称之为宿主线程,Worker自身的线程称之为Worker线程。创建Worker传入的url文件在Worker线程中执行,可以处理耗时操作但不可以直接操作UI。
......
# xml解析与生成
# @ohos.xml (xml解析与生成)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
......@@ -4,7 +4,7 @@
**错误信息**
Session service exception
Session service exception.
**错误描述**
......@@ -24,7 +24,7 @@ Session service exception
**错误信息**
The session does not exist
The session does not exist.
**错误描述**
......@@ -44,7 +44,7 @@ The session does not exist
**错误信息**
The session controller does not exist
The session controller does not exist.
**错误描述**
......@@ -62,7 +62,7 @@ The session controller does not exist
**错误信息**
The remote session connection failed
The remote session connection failed.
**错误描述**
......@@ -80,7 +80,7 @@ The remote session connection failed
**错误信息**
Invalid session command
Invalid session command.
**错误描述**
......@@ -98,7 +98,7 @@ Invalid session command
**错误信息**
The session not active
The session is not activated.
**错误描述**
......@@ -116,7 +116,7 @@ The session not active
**错误信息**
Command or event overload
Too many commands or events.
**错误描述**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册