提交 4143226d 编写于 作者: E esterzhou

update doc (12827)

Signed-off-by: Nesterzhou <ester.zhou@huawei.com>
上级 8bf1d784
# Notification # @system.notification
> **NOTE** > **NOTE**
>
> - The APIs of this module are no longer maintained since API version 7. You are advised to use [`@ohos.notification`](js-apis-notification.md). > - The APIs of this module are no longer maintained since API version 7. You are advised to use [`@ohos.notification`](js-apis-notification.md).
> >
> - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...@@ -18,22 +17,22 @@ import notification from '@system.notification'; ...@@ -18,22 +17,22 @@ import notification from '@system.notification';
**System capability**: SystemCapability.Notification.Notification **System capability**: SystemCapability.Notification.Notification
| Name | Readable| Writable| Type | Mandatory| Description | | Name | Type | Readable | Writable | Mandatory| Description |
| ----------- | --- | ---- | ---------------------------------------------- | ---- | ------------------------- | | ----------- | ---------------------------------------------- | ---- | ------------------------- | ------------------------- | ------------------------- |
| bundleName | Yes | Yes | string | Yes | Name of the application bundle to which the notification will be redirected after being clicked. | | bundleName | string | Yes | Yes | Yes | Name of the application bundle to which the notification will be redirected after being clicked. |
| abilityName | Yes | Yes | string | Yes | Name of the application ability to which the notification will be redirected after being clicked.| | abilityName | string | Yes | Yes | Yes | Name of the application ability to which the notification will be redirected after being clicked.|
| uri | Yes | Yes | string | No | URI of the page to be redirected to. | | uri | string | Yes | Yes | No | URI of the page to be redirected to. |
## ShowNotificationOptions ## ShowNotificationOptions
**System capability**: SystemCapability.Notification.Notification **System capability**: SystemCapability.Notification.Notification
| Name | Readable| Writable| Type | Mandatory| Description | | Name | Type | Readable | Writable | Mandatory| Description |
| ------------- | --- | ---- | ---------------------------------------------- | ---- | ------------------------- | | ------------- | ---------------------------------------------- | ---- | ------------------------- | ------------------------- | ------------------------- |
| contentTitle | Yes | Yes | string | No | Notification title. | | contentTitle | string | Yes | Yes | No | Notification title. |
| contentText | Yes | Yes | string | No | Notification content. | | contentText | string | Yes | Yes | No | Notification content. |
| clickAction | Yes | Yes | ActionResult | No | Action triggered when the notification is clicked. | | clickAction | ActionResult | Yes | Yes | No | Action triggered when the notification is clicked. |
## notification.show ## notification.show
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册