提交 e24574f2 编写于 作者: W wangkailong

默认值

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