From 4143226d2585c65c2df3b403a44d74ed222c790a Mon Sep 17 00:00:00 2001 From: esterzhou Date: Fri, 30 Dec 2022 22:24:47 +0800 Subject: [PATCH] update doc (12827) Signed-off-by: esterzhou --- .../apis/js-apis-system-notification.md | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-system-notification.md b/en/application-dev/reference/apis/js-apis-system-notification.md index 0a46cec929..608bb4d3d3 100644 --- a/en/application-dev/reference/apis/js-apis-system-notification.md +++ b/en/application-dev/reference/apis/js-apis-system-notification.md @@ -1,7 +1,6 @@ -# Notification +# @system.notification > **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 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'; **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Mandatory| Description | -| ----------- | --- | ---- | ---------------------------------------------- | ---- | ------------------------- | -| bundleName | Yes | Yes | string | 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.| -| uri | Yes | Yes | string | No | URI of the page to be redirected to. | +| Name | Type | Readable | Writable | Mandatory| Description | +| ----------- | ---------------------------------------------- | ---- | ------------------------- | ------------------------- | ------------------------- | +| bundleName | string | Yes | Yes | Yes | Name of the application bundle 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 | string | Yes | Yes | No | URI of the page to be redirected to. | ## ShowNotificationOptions **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Mandatory| Description | -| ------------- | --- | ---- | ---------------------------------------------- | ---- | ------------------------- | -| contentTitle | Yes | Yes | string | No | Notification title. | -| contentText | Yes | Yes | string | No | Notification content. | -| clickAction | Yes | Yes | ActionResult | No | Action triggered when the notification is clicked. | +| Name | Type | Readable | Writable | Mandatory| Description | +| ------------- | ---------------------------------------------- | ---- | ------------------------- | ------------------------- | ------------------------- | +| contentTitle | string | Yes | Yes | No | Notification title. | +| contentText | string | Yes | Yes | No | Notification content. | +| clickAction | ActionResult | Yes | Yes | No | Action triggered when the notification is clicked. | ## notification.show -- GitLab