未验证 提交 5f07576f 编写于 作者: O openharmony_ci 提交者: Gitee

!23703 元能力、事件通知整改默认值beta

Merge pull request !23703 from wangkailong/cherry-pick-1693565389
......@@ -1066,7 +1066,7 @@ moveMissionToFront(missionId: number, options?: StartOptions): Promise<void&g
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| missionId | number | 是 | 任务ID。 |
| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动参数选项,用于指定任务切到前台时的窗口模式,设备ID等。 |
| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动参数选项,用于指定任务切到前台时的窗口模式,设备ID等。默认为空,表示按照默认启动参数。 |
**返回值:**
......@@ -1243,7 +1243,7 @@ moveMissionsToForeground(missionIds: Array<number>, topMission?: number):
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| missionIds | Array<number> | 是 | 任务ID数组。 |
| topMission | number | 否 | 待移动到最顶层的任务ID |
| topMission | number | 否 | 待移动到最顶层的任务ID。默认值为-1,表示将默认任务移动到最顶层。 |
**返回值:**
......
......@@ -74,7 +74,7 @@ loadContent(path: string, storage?: LocalStorage): Promise<void>
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ----------------------------------------------- | ---- | ------------------------------------------------------------ |
| path | string | 是 | 设置加载页面的路径。 |
| storage | [LocalStorage](../../quick-start/arkts-localstorage.md) | 否 | 存储单元,为应用程序范围内的可变状态属性和非可变状态属性提供存储。 |
| storage | [LocalStorage](../../quick-start/arkts-localstorage.md) | 否 | 存储单元,为应用程序范围内的可变状态属性和非可变状态属性提供存储。默认为空。 |
**错误码:**
......
......@@ -159,7 +159,7 @@ releaseForm(formId: string, isReleaseCache?: boolean): Promise<void>
| 参数名 | 类型 | 必填 | 说明 |
| -------------- | ------ | ---- | ----------- |
| formId | string | 是 | 卡片标识。 |
| isReleaseCache | boolean | 否 | 是否释放缓存。 |
| isReleaseCache | boolean | 否 | 是否释放缓存,默认为false。 |
**返回值:**
......
......@@ -13,5 +13,5 @@ BundleOption模块为指定应用的包信息。
| 名称 | 类型 | 必填 | 说明 |
| ------ | ------ | ------ | ------ |
| bundle | string | 是 | 应用的包信息。 |
| uid | number | 否 | 用户ID。 |
| uid | number | 否 | 用户ID,默认为0。 |
......@@ -225,7 +225,7 @@ cancel(id: number, label?: string): Promise\<void\>
| 参数名 | 类型 | 必填 | 说明 |
| ----- | ------ | ---- | -------- |
| id | number | 是 | 通知ID。 |
| label | string | 否 | 通知标签。 |
| label | string | 否 | 通知标签,默认为空。 |
**示例:**
......@@ -808,7 +808,7 @@ subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo):
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------------------------- | ---- | ------------ |
| subscriber | [NotificationSubscriber](js-apis-inner-notification-notificationSubscriber.md#notificationsubscriber) | 是 | 通知订阅对象。 |
| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 否 | 通知订阅信息。 |
| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 否 | 通知订阅信息,默认为空。 |
**示例:**
......@@ -1668,7 +1668,7 @@ removeAll(bundle?: BundleOption): Promise\<void\>
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------------ | ---- | ---------- |
| bundle | [BundleOption](#bundleoption) | 否 | 指定应用的包信息。 |
| bundle | [BundleOption](#bundleoption) | 否 | 指定应用的包信息。默认为空,表示删除所有通知。 |
**示例:**
......@@ -2872,7 +2872,7 @@ Notification.getDeviceRemindType().then((data) => {
| 名称 | 类型 | 必填 | 说明 |
| ------ | ------ | --- | ------ |
| bundle | string | 是 | 应用的包信息。 |
| uid | number | 否 | 用户ID。 |
| uid | number | 否 | 用户ID,默认为0。 |
## NotificationKey<sup>deprecated</sup>
......
......@@ -290,7 +290,7 @@ cancel(id: number, label?: string): Promise\<void\>
| 参数名 | 类型 | 必填 | 说明 |
| ----- | ------ | ---- | -------- |
| id | number | 是 | 通知ID。 |
| label | string | 否 | 通知标签。 |
| label | string | 否 | 通知标签,默认为空。 |
**错误码:**
......@@ -3921,7 +3921,7 @@ off(type: 'checkNotification', callback?: (checkInfo: NotificationCheckInfo) =>
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ----------------------------- | ---- | -------------- |
| type | string | 是 | 回调函数类型名,固定为'checkNotification'。 |
| callback | (checkInfo: [NotificationCheckInfo](#notificationcheckinfo)) => [NotificationCheckResult](#notificationcheckresult) | 否 | 消息验证函数指针。 |
| callback | (checkInfo: [NotificationCheckInfo](#notificationcheckinfo)) => [NotificationCheckResult](#notificationcheckresult) | 否 | 消息验证函数指针,默认为空。 |
**错误码:**
......
......@@ -134,7 +134,7 @@ subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo):
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ------------------------- | ---- | ------------ |
| subscriber | [NotificationSubscriber](js-apis-notification.md#notificationsubscriber) | 是 | 通知订阅对象。 |
| info | [NotificationSubscribeInfo](js-apis-notification.md#notificationsubscribeinfo) | 否 | 通知订阅信息。 |
| info | [NotificationSubscribeInfo](js-apis-notification.md#notificationsubscribeinfo) | 否 | 通知订阅信息,默认为空。 |
**错误码:**
......@@ -632,7 +632,7 @@ removeAll(bundle?: BundleOption): Promise\<void\>
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ------------ | ---- | ---------- |
| bundle | [BundleOption](js-apis-inner-notification-notificationCommonDef.md#bundleoption) | 否 | 指定应用的包信息。 |
| bundle | [BundleOption](js-apis-inner-notification-notificationCommonDef.md#bundleoption) | 否 | 指定应用的包信息。默认为空,表示删除所有通知。 |
**错误码:**
......@@ -754,7 +754,7 @@ notificationSubscribe.removeAll(userId, removeAllCallback);
| 名称 | 类型 | 必填 | 说明 |
| ----- | ------ | --- | -------- |
| id | number | 是 | 通知ID。 |
| label | string | 否 | 通知标签。 |
| label | string | 否 | 通知标签,默认为空。 |
## RemoveReason
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册