diff --git a/interfaces/kits/js/@ohos.notification.d.ts b/interfaces/kits/js/@ohos.notification.d.ts
index edbbd33d71fed6fbdbb0d7e49f95857247434dc9..41b9500eefaf26fa03d5d90c2e73478ec582a2eb 100644
--- a/interfaces/kits/js/@ohos.notification.d.ts
+++ b/interfaces/kits/js/@ohos.notification.d.ts
@@ -32,8 +32,7 @@ import { NotificationRequest } from './notification/notificationRequest';
*
* @name notification
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @import import notification from '@ohos.notification';
* @permission N/A
*/
@@ -44,7 +43,8 @@ declare namespace notification {
*
If a notification with the same ID has been published by the current application and has not been deleted,
* this method will update the notification.
*
- * @param Publishes a notification.
+ * @param request notification request
+ * @param callback callback function
*/
function publish(request: NotificationRequest, callback: AsyncCallback): void;
function publish(request: NotificationRequest): Promise;
@@ -52,15 +52,17 @@ declare namespace notification {
/**
* Cancels a notification with the specified ID.
*
- * @param ID of the notification to cancel, which must be unique in the application.
+ * @param id of the notification to cancel, which must be unique in the application.
+ * @param callback callback function
*/
function cancel(id: number, callback: AsyncCallback): void;
/**
* Cancels a notification with the specified label and ID.
*
- * @param ID of the notification to cancel, which must be unique in the application.
- * @param Label of the notification to cancel.
+ * @param id ID of the notification to cancel, which must be unique in the application.
+ * @param label Label of the notification to cancel.
+ * @param callback callback function
*/
function cancel(id: number, label: string, callback: AsyncCallback): void;
function cancel(id: number, label?: string): Promise;
@@ -78,6 +80,7 @@ declare namespace notification {
* This parameter must be specified.
*
* @systemapi Hide this for inner system use.
+ * @param callback callback function
*/
function addSlot(slot: NotificationSlot, callback: AsyncCallback): void;
@@ -94,7 +97,8 @@ declare namespace notification {
/**
* Adds a slot type.
*
- * @param Slot type to add.
+ * @param type Slot type to add.
+ * @param callback callback function
*/
function addSlot(type: SlotType, callback: AsyncCallback): void;
function addSlot(type: SlotType): Promise;
@@ -104,7 +108,7 @@ declare namespace notification {
*
* @param slots Indicates the notification slots to be created, which is set by {@link NotificationSlot}.
* This parameter must be specified.
- *
+ * @param callback callback function
* @systemapi Hide this for inner system use.
*/
function addSlots(slots: Array, callback: AsyncCallback): void;
@@ -122,8 +126,8 @@ declare namespace notification {
/**
* Obtains a notification slot of the specified slot type.
*
- * @param Type of the notification slot to obtain.
- *
+ * @param slotType Type of the notification slot to obtain.
+ * @param callback callback function
* @return Returns the created {@link NotificationSlot}.
*/
function getSlot(slotType: SlotType, callback: AsyncCallback): void;
@@ -140,7 +144,8 @@ declare namespace notification {
/**
* Removes a NotificationSlot of the specified SlotType created by the current application.
*
- * @param Type of the NotificationSlot to remove.
+ * @param slotType of the NotificationSlot to remove.
+ * @param callback callback function
*/
function removeSlot(slotType: SlotType, callback: AsyncCallback): void;
function removeSlot(slotType: SlotType): Promise;
@@ -186,8 +191,7 @@ declare namespace notification {
*
* @name ContentType
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export enum ContentType {
@@ -548,6 +552,7 @@ declare namespace notification {
*
* @since 8
* @param templateName Name of template to be Obtained
+ * @param callback callback function
*/
function isSupportTemplate(templateName: string, callback: AsyncCallback): void;
function isSupportTemplate(templateName: string): Promise;
diff --git a/interfaces/kits/js/notification/notificationActionButton.d.ts b/interfaces/kits/js/notification/notificationActionButton.d.ts
index 9428cc4f0d34c8bed47bc6c6b6e034e981f6fb1d..cd67a4452b33c983db9da96b4c5919dea53f8180 100644
--- a/interfaces/kits/js/notification/notificationActionButton.d.ts
+++ b/interfaces/kits/js/notification/notificationActionButton.d.ts
@@ -20,9 +20,8 @@ import { WantAgent } from '../@ohos.wantAgent';
* Describes an action button displayed in a notification.
* @name NotificationActionButton
* @since 7
- * @devices phone, tablet, tv, wearable, car
* @permission N/A
- * @sysCap SystemCapability.Notification.ANS
+ * @syscap SystemCapability.Notification.Notification
*/
export interface NotificationActionButton {
/**
diff --git a/interfaces/kits/js/notification/notificationContent.d.ts b/interfaces/kits/js/notification/notificationContent.d.ts
index 037300c24bfc8c1de315cb4dab649be24786488d..c31d1d1d7462599af7ba3a7b54025f3c4b3bdaef 100644
--- a/interfaces/kits/js/notification/notificationContent.d.ts
+++ b/interfaces/kits/js/notification/notificationContent.d.ts
@@ -22,8 +22,7 @@ import { MessageUser } from './notificationMessageUser';
*
* @name NotificationBasicContent
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export interface NotificationBasicContent {
@@ -48,8 +47,7 @@ export interface NotificationBasicContent {
*
* @name NotificationLongTextContent
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export interface NotificationLongTextContent extends NotificationBasicContent {
@@ -74,8 +72,7 @@ export interface NotificationLongTextContent extends NotificationBasicContent {
*
* @name NotificationMultiLineContent
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export interface NotificationMultiLineContent extends NotificationBasicContent {
@@ -100,8 +97,7 @@ export interface NotificationMultiLineContent extends NotificationBasicContent {
*
* @name NotificationPictureContent
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export interface NotificationPictureContent extends NotificationBasicContent {
@@ -188,8 +184,7 @@ export interface ConversationalMessage {
*
* @name NotificationContent
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export interface NotificationContent {
diff --git a/interfaces/kits/js/notification/notificationFlags.ts b/interfaces/kits/js/notification/notificationFlags.ts
index 58c4a68314afc35be19aed5e06956446a8bd9c8e..e19f9593d2eaa16b4520bbc9bf7317273247424c 100644
--- a/interfaces/kits/js/notification/notificationFlags.ts
+++ b/interfaces/kits/js/notification/notificationFlags.ts
@@ -18,9 +18,8 @@
*
* @name NotificationFlags
* @since 8
- * @devices phone, tablet, tv, wearable, car
* @permission N/A
- * @sysCap SystemCapability.Notification.ANS
+ * @syscap SystemCapability.Notification.Notification
*/
export interface NotificationFlags {
/**
diff --git a/interfaces/kits/js/notification/notificationMessageUser.d.ts b/interfaces/kits/js/notification/notificationMessageUser.d.ts
index 40d01bde11edcb54e6bcbc6719089e6a37818c71..97a9c817157ddf7c7d800f95379fd2db8afec1c5 100644
--- a/interfaces/kits/js/notification/notificationMessageUser.d.ts
+++ b/interfaces/kits/js/notification/notificationMessageUser.d.ts
@@ -20,9 +20,8 @@ import image from '../@ohos.multimedia.image';
*
* @name MessageUser
* @since 8
- * @devices phone, tablet, tv, wearable, car
* @permission N/A
- * @sysCap SystemCapability.Notification.ANS
+ * @syscap SystemCapability.Notification.Notification
*/
export interface MessageUser {
/**
diff --git a/interfaces/kits/js/notification/notificationRequest.d.ts b/interfaces/kits/js/notification/notificationRequest.d.ts
index 971ecb0c744167e6b9bd77deb0acd6b178627c7b..f53673de216b902ddd1e73d496df2439ea8c8b25 100644
--- a/interfaces/kits/js/notification/notificationRequest.d.ts
+++ b/interfaces/kits/js/notification/notificationRequest.d.ts
@@ -26,8 +26,7 @@ import { NotificationFlags } from './notificationFlags';
*
* @name NotificationRequest
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
*/
export interface NotificationRequest {
diff --git a/interfaces/kits/js/notification/notificationSlot.d.ts b/interfaces/kits/js/notification/notificationSlot.d.ts
index 82ff360f74f57ce33f6749c346ba2e29f15019eb..a41d522ee00c2ff331513429fcb825e2fecab548 100644
--- a/interfaces/kits/js/notification/notificationSlot.d.ts
+++ b/interfaces/kits/js/notification/notificationSlot.d.ts
@@ -20,9 +20,8 @@ import notification from '../@ohos.notification';
*
* @name NotificationSlot
* @since 7
- * @devices phone, tablet, tv, wearable, car
* @permission N/A
- * @sysCap SystemCapability.Notification.ANS
+ * @syscap SystemCapability.Notification.Notification
*/
export interface NotificationSlot {
/**
diff --git a/interfaces/kits/js/notification/notificationSorting.d.ts b/interfaces/kits/js/notification/notificationSorting.d.ts
index a4d917145141ce36f5f9f2ca5e153cc738ccd152..3155555098b32cb2918fc21200b2c86f4595fdb4 100644
--- a/interfaces/kits/js/notification/notificationSorting.d.ts
+++ b/interfaces/kits/js/notification/notificationSorting.d.ts
@@ -19,8 +19,7 @@ import { NotificationSlot } from './notificationSlot';
* Provides sorting information about an active notification.
*
* @name NotificationSorting
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
* @systemapi Hide this for inner system use.
* @since 7
diff --git a/interfaces/kits/js/notification/notificationSortingMap.d.ts b/interfaces/kits/js/notification/notificationSortingMap.d.ts
index 2b2a73b4e4daf6f7bd9f1eaf407bf1346e6081b3..1b62fa6a4f32e197093e50b8d3ef545dfa008676 100644
--- a/interfaces/kits/js/notification/notificationSortingMap.d.ts
+++ b/interfaces/kits/js/notification/notificationSortingMap.d.ts
@@ -20,8 +20,7 @@ import { NotificationSorting } from './notificationSorting';
*
* @name NotificationSortingMap
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
* @systemapi Hide this for inner system use.
*/
diff --git a/interfaces/kits/js/notification/notificationSubscribeInfo.d.ts b/interfaces/kits/js/notification/notificationSubscribeInfo.d.ts
index d7ee89bd9a53c526aec7dfcdbff571c80d199996..6886554c57d343bc5209c86ef53767defaacf1ee 100644
--- a/interfaces/kits/js/notification/notificationSubscribeInfo.d.ts
+++ b/interfaces/kits/js/notification/notificationSubscribeInfo.d.ts
@@ -18,8 +18,7 @@
*
* @name NotificationSubscribeInfo
* @since 7
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
* @systemapi Hide this for inner system use.
*/
diff --git a/interfaces/kits/js/notification/notificationSubscriber.d.ts b/interfaces/kits/js/notification/notificationSubscriber.d.ts
index 3ae878775d5b2ad008e0fe566a4aee598f845a96..2ab26d469efe817a4d6e92445408bf001a2d1305 100644
--- a/interfaces/kits/js/notification/notificationSubscriber.d.ts
+++ b/interfaces/kits/js/notification/notificationSubscriber.d.ts
@@ -22,8 +22,7 @@ import notification from '../@ohos.notification';
* a notification is canceled.
*
* @name NotificationSubscriber
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
* @systemapi Hide this for inner system use.
* @since 7
@@ -49,8 +48,7 @@ export interface NotificationSubscriber {
* a notification is canceled.
*
* @name SubscribeCallbackData
- * @sysCap SystemCapability.Notification.ANS
- * @devices phone, tablet, tv, wearable, car
+ * @syscap SystemCapability.Notification.Notification
* @permission N/A
* @systemapi Hide this for inner system use.
* @since 7
diff --git a/interfaces/kits/js/notification/notificationTemplate.d.ts b/interfaces/kits/js/notification/notificationTemplate.d.ts
index d131ed5cb2afa784543246f7ed70d20651717b60..db281d66cb0110154c105e3d557a9e47486109f9 100644
--- a/interfaces/kits/js/notification/notificationTemplate.d.ts
+++ b/interfaces/kits/js/notification/notificationTemplate.d.ts
@@ -18,9 +18,8 @@
*
* @name NotificationTemplate
* @since 8
- * @devices phone, tablet, tv, wearable, car
* @permission N/A
- * @sysCap SystemCapability.Notification.ANS
+ * @syscap SystemCapability.Notification.Notification
*/
export interface NotificationTemplate {
/**
diff --git a/interfaces/kits/js/notification/notificationUserInput.d.ts b/interfaces/kits/js/notification/notificationUserInput.d.ts
index 389d1c43c713fbf53a07d47a753463212fae7e1b..fdb67ccd911d52edb6123644b15cb826f47e5afe 100644
--- a/interfaces/kits/js/notification/notificationUserInput.d.ts
+++ b/interfaces/kits/js/notification/notificationUserInput.d.ts
@@ -18,9 +18,8 @@
*
* @name NotificationUserInput
* @since 8
- * @devices phone, tablet, tv, wearable, car
* @permission N/A
- * @sysCap SystemCapability.Notification.ANS
+ * @syscap SystemCapability.Notification.Notification
*/
export interface NotificationUserInput {
/**