diff --git a/api/@ohos.commonEventManager.d.ts b/api/@ohos.commonEventManager.d.ts index 2b1198b9706c3e7943603c2ebfff5d2b3d35a37b..1055902283fac12dae45bf30a8115c13998eecf8 100644 --- a/api/@ohos.commonEventManager.d.ts +++ b/api/@ohos.commonEventManager.d.ts @@ -2327,7 +2327,7 @@ declare namespace commonEventManager { * @systemapi * @since 15 */ - COMMON_EVENT_BUNDLE_RESOURCES_CHANGED = "usual.event.BUNDLE_RESOURCES_CHANGED", + COMMON_EVENT_BUNDLE_RESOURCES_CHANGED = 'usual.event.BUNDLE_RESOURCES_CHANGED', /** * This common event means that datashare is ready. diff --git a/api/@ohos.notificationManager.d.ts b/api/@ohos.notificationManager.d.ts index 0e42bac07501eed08bdd2cd481ef23be689c0444..610710885303fc5fc67ae53d217bcda16b25c839 100644 --- a/api/@ohos.notificationManager.d.ts +++ b/api/@ohos.notificationManager.d.ts @@ -1005,7 +1005,8 @@ declare namespace notificationManager { * Checks whether notification is enabled for the specified application. This API uses an asynchronous callback to return the result. * * @permission ohos.permission.NOTIFICATION_CONTROLLER - * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the notification is enabled, and false means the opposite. + * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the + * notification is enabled, and false means the opposite. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -1020,7 +1021,8 @@ declare namespace notificationManager { /** * Checks whether notification is enabled for the specified application. This API uses an asynchronous callback to return the result. * - * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the notification is enabled, and false means the opposite. + * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the + * notification is enabled, and false means the opposite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @throws { BusinessError } 1600001 - Internal error. @@ -1034,7 +1036,8 @@ declare namespace notificationManager { /** * Checks whether notification is enabled for the specified application. This API uses an asynchronous callback to return the result. * - * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the notification is enabled, and false means the opposite. + * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the + * notification is enabled, and false means the opposite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @throws { BusinessError } 1600001 - Internal error. @@ -2137,11 +2140,11 @@ declare namespace notificationManager { function isSupportDoNotDisturbMode(): Promise; /** - * Checks whether a specified template is supported before using NotificationTemplate to publish a notification. This API uses an asynchronous callback to return the result. + * Checks whether a specified template is supported. This API uses an asynchronous callback to return the result. * * @param { string } templateName - Template name. Currently, only downloadTemplate is supported. - * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the specified template is supported, - * and false means the opposite. + * @param { AsyncCallback } callback - Callback used to return the result. The value true means that the + * specified template is supported, and false means the opposite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @throws { BusinessError } 1600001 - Internal error. @@ -2153,10 +2156,11 @@ declare namespace notificationManager { function isSupportTemplate(templateName: string, callback: AsyncCallback): void; /** - * Checks whether a specified template is supported before using NotificationTemplate to publish a notification. This API uses a promise to return the result. + * Checks whether a specified template is supported. This API uses a promise to return the URI of the file in the destination directory. * * @param { string } templateName - Template name. Currently, only downloadTemplate is supported. - * @returns { Promise } Promise used to return the result. The value true means that the specified template is supported, and false means the opposite. + * @returns { Promise } Promise used to return the result. The value true means that the specified template + * is supported, and false means the opposite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @throws { BusinessError } 1600001 - Internal error. @@ -2442,7 +2446,8 @@ declare namespace notificationManager { /** * Checks whether distributed notification is enabled on this device. This API uses an asynchronous callback to return the result. * - * @param { AsyncCallback } callback - Callback used to return the result. The value true means that distributed notification is enabled, and false means the opposite. + * @param { AsyncCallback } callback - Callback used to return the result. The value true means that + * distributed notification is enabled, and false means the opposite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @throws { BusinessError } 1600001 - Internal error. @@ -2455,9 +2460,10 @@ declare namespace notificationManager { function isDistributedEnabled(callback: AsyncCallback): void; /** - * Checks whether distributed notification is enabled on this device. This API uses a promise to return the result. + * Checks whether distributed notification is enabled on this device. This API uses a promise to return the URI of the file in the destination directory. * - * @returns { Promise } Promise used to return the result. The value true means that distributed notification is enabled, and false means the opposite. + * @returns { Promise } Promise used to return the result. The value true means that distributed notification + * is enabled, and false means the opposite. * @throws { BusinessError } 1600001 - Internal error. * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. * @throws { BusinessError } 1600003 - Failed to connect to the service. @@ -3885,40 +3891,40 @@ declare namespace notificationManager { function getDoNotDisturbProfile(id: number): Promise; /** - * Set target device status. + * Disabling notifications based on the application list. * * @permission ohos.permission.NOTIFICATION_CONTROLLER - * @param { string } deviceType - The device. - * @param { number } status - The device status. + * @param { boolean } disabled - The switch of disableNotification. + * @param { Array } bundleList - The bundles of disableNotification. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. + * @throws { BusinessError } 1600001 - Internal error. + * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. * @syscap SystemCapability.Notification.Notification * @systemapi * @since 18 */ - function setTargetDeviceStatus(deviceType: string, status: number): Promise; + function disableNotificationFeature(disabled:boolean, bundleList: Array): Promise; /** - * Disabling notifications based on the application list. + * Set target device status. * * @permission ohos.permission.NOTIFICATION_CONTROLLER - * @param { boolean } disabled - The switch of disableNotification. - * @param { Array } bundleList - The bundles of disableNotification. + * @param { string } deviceType - The device. + * @param { number } status - The device status. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. - * @throws { BusinessError } 1600001 - Internal error. - * @throws { BusinessError } 1600002 - Marshalling or unmarshalling error. * @syscap SystemCapability.Notification.Notification * @systemapi * @since 18 */ - function disableNotificationFeature(disabled:boolean, bundleList: Array): Promise; + function setTargetDeviceStatus(deviceType: string, status: number): Promise; /** * Set notification slot synchronization switch. @@ -4220,14 +4226,16 @@ declare namespace notificationManager { /** * Live view. A third-party application cannot directly create a notification of this slot type. After the system proxy creates a system live view, - * the third-party application releases a notification with the same ID to update the specified content. This type corresponds to SlotLevel being LEVEL_DEFAULT. + * the third-party application releases a notification with the same ID to update the specified content. + * This type corresponds to SlotLevel being LEVEL_DEFAULT. * * @syscap SystemCapability.Notification.Notification * @since 11 */ /** * Live view. A third-party application cannot directly create a notification of this slot type. After the system proxy creates a system live view, - * the third-party application releases a notification with the same ID to update the specified content. This type corresponds to SlotLevel being LEVEL_DEFAULT. + * the third-party application releases a notification with the same ID to update the specified content. + * This type corresponds to SlotLevel being LEVEL_DEFAULT. * * @syscap SystemCapability.Notification.Notification * @atomicservice diff --git a/api/commonEvent/commonEventData.d.ts b/api/commonEvent/commonEventData.d.ts index 610a3068f4d1cf0eb38aa936d426bf1095a3e4ef..e013647de7cd9f5051f7f55e7f1e4f98b7c174ac 100644 --- a/api/commonEvent/commonEventData.d.ts +++ b/api/commonEvent/commonEventData.d.ts @@ -32,8 +32,7 @@ * @syscap SystemCapability.Notification.CommonEvent * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ export interface CommonEventData { /** @@ -50,8 +49,7 @@ export interface CommonEventData { * @syscap SystemCapability.Notification.CommonEvent * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ event: string; @@ -68,13 +66,13 @@ export interface CommonEventData { * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ bundleName?: string; /** - * Common event data received by the subscriber. The value of this field is the same as that of the code field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. + * Common event data received by the subscriber. The value of this field is the same as that of the code field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. * * @type { ?number } * @default 0 @@ -82,26 +80,28 @@ export interface CommonEventData { * @since 7 */ /** - * Common event data received by the subscriber. The value of this field is the same as that of the code field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. + * Common event data received by the subscriber. The value of this field is the same as that of the code field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. * * @type { ?number } * @default 0 * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ code?: number; /** - * Common event data received by the subscriber. The value of this field is the same as that of the data field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Common event data received by the subscriber. The value of this field is the same as that of the data field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @since 7 */ /** - * Common event data received by the subscriber. The value of this field is the same as that of the data field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Common event data received by the subscriber. The value of this field is the same as that of the data field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent @@ -109,26 +109,28 @@ export interface CommonEventData { * @since 11 */ /** - * Common event data received by the subscriber. The value of this field is the same as that of the data field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Common event data received by the subscriber. The value of this field is the same as that of the data field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @crossplatform * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ data?: string; /** - * Additional information about the common event received by the subscriber. The value of this field is the same as that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Additional information about the common event received by the subscriber. The value of this field is the same as + * that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?object } * @syscap SystemCapability.Notification.CommonEvent * @since 7 */ /** - * Additional information about the common event received by the subscriber. The value of this field is the same as that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Additional information about the common event received by the subscriber. The value of this field is the same as + * that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?object } * @syscap SystemCapability.Notification.CommonEvent @@ -136,14 +138,4 @@ export interface CommonEventData { * @since 11 */ parameters?: { [key: string]: any }; - - /** - * The description of the parameters in a common event. - * - * @type { ?Record } - * @syscap SystemCapability.Notification.CommonEvent - * @since 20 - * @arkts 1.2 - */ - parameters?: Record; } diff --git a/api/commonEvent/commonEventSubscribeInfo.d.ts b/api/commonEvent/commonEventSubscribeInfo.d.ts index 7fcfa6127934b63fd43124b1ae7167f9c94e7bb7..607748e1c29cd73a58e2b4c27ec2eed353aa8211 100644 --- a/api/commonEvent/commonEventSubscribeInfo.d.ts +++ b/api/commonEvent/commonEventSubscribeInfo.d.ts @@ -32,8 +32,7 @@ * @syscap SystemCapability.Notification.CommonEvent * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ export interface CommonEventSubscribeInfo { /** @@ -50,8 +49,7 @@ export interface CommonEventSubscribeInfo { * @syscap SystemCapability.Notification.CommonEvent * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ events: Array; @@ -68,8 +66,7 @@ export interface CommonEventSubscribeInfo { * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ publisherPermission?: string; @@ -86,26 +83,26 @@ export interface CommonEventSubscribeInfo { * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ publisherDeviceId?: string; /** - * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. + * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. + * The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. * * @type { ?number } * @syscap SystemCapability.Notification.CommonEvent * @since 7 */ /** - * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. + * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. + * The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. * * @type { ?number } * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ userId?: number; @@ -122,8 +119,7 @@ export interface CommonEventSubscribeInfo { * @type { ?number } * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ priority?: number; @@ -133,8 +129,7 @@ export interface CommonEventSubscribeInfo { * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ publisherBundleName?: string; } diff --git a/api/commonEvent/commonEventSubscriber.d.ts b/api/commonEvent/commonEventSubscriber.d.ts index d9ca0aaa1ea4bb361458423f23f8b42990a07948..3587f168993c31222d0e708f17216e22abaa5c5c 100644 --- a/api/commonEvent/commonEventSubscriber.d.ts +++ b/api/commonEvent/commonEventSubscriber.d.ts @@ -34,8 +34,7 @@ import { CommonEventSubscribeInfo } from './commonEventSubscribeInfo'; * @interface CommonEventSubscriber * @syscap SystemCapability.Notification.CommonEvent * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ export interface CommonEventSubscriber { /** @@ -358,7 +357,8 @@ export interface CommonEventSubscriber { /** * Checks whether the current common event is an ordered common event. This API uses an asynchronous callback to return the result. * - * @param { AsyncCallback } callback - Callback used to return the result. Returns true if the common event is an ordered one; returns false otherwise. + * @param { AsyncCallback } callback - Callback used to return the result. Returns true if the common event is an ordered one; + * returns false otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @syscap SystemCapability.Notification.CommonEvent @@ -414,7 +414,8 @@ export interface CommonEventSubscriber { isStickyCommonEventSync(): boolean; /** - * Aborts an ordered common event when used with finishCommonEvent. After the abort, the common event is not sent to the next subscriber. This API uses an asynchronous callback to return the result. + * Aborts an ordered common event when used with finishCommonEvent. After the abort, the common event is not sent to the + * next subscriber. This API uses an asynchronous callback to return the result. * * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -425,7 +426,8 @@ export interface CommonEventSubscriber { abortCommonEvent(callback: AsyncCallback): void; /** - * Aborts an ordered common event when used with finishCommonEvent. After the abort, the common event is not sent to the next subscriber. This API uses a promise to return the result. + * Aborts an ordered common event when used with finishCommonEvent. After the abort, the common event is not sent to the + * next subscriber. This API uses a promise to return the result. * * @returns { Promise } Promise that returns no value. * @syscap SystemCapability.Notification.CommonEvent @@ -442,7 +444,8 @@ export interface CommonEventSubscriber { abortCommonEventSync(): void; /** - * Clears the aborted state of an ordered common event when used with finishCommonEvent. After the clearance, the common event is sent to the next subscriber. This API uses an asynchronous callback to return the result. + * Clears the aborted state of an ordered common event when used with finishCommonEvent. + * After the clearance, the common event is sent to the next subscriber. This API uses an asynchronous callback to return the result. * * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -453,7 +456,8 @@ export interface CommonEventSubscriber { clearAbortCommonEvent(callback: AsyncCallback): void; /** - * Clears the aborted state of an ordered common event when used with finishCommonEvent. After the clearance, the common event is sent to the next subscriber. This API uses a promise to return the result. + * Clears the aborted state of an ordered common event when used with finishCommonEvent. + * After the clearance, the common event is sent to the next subscriber. This API uses a promise to return the result. * * @returns { Promise } Promise that returns no value. * @syscap SystemCapability.Notification.CommonEvent @@ -472,7 +476,8 @@ export interface CommonEventSubscriber { /** * Checks whether this ordered common event should be aborted. This API uses an asynchronous callback to return the result. * - * @param { AsyncCallback } callback - Callback used to return the result. Returns true if the ordered common event is in the aborted state; returns false otherwise. + * @param { AsyncCallback } callback - Callback used to return the result. Returns true if the ordered common event + * is in the aborted state; returns false otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. * @syscap SystemCapability.Notification.CommonEvent diff --git a/api/notification/notificationContent.d.ts b/api/notification/notificationContent.d.ts index ad6b1c4ec6bdca51464dca9ba5eb41e040c8a0bf..7c1cc0d6e4d99ee3851645dc69becc30cbfa6012 100644 --- a/api/notification/notificationContent.d.ts +++ b/api/notification/notificationContent.d.ts @@ -93,7 +93,8 @@ export interface NotificationBasicContent { /** * Picture of a notification displayed on the lock screen. Currently, only the live view notification is supported. - * The total number of the icon pixel bytes cannot exceed 192 KB (which is obtained through getPixelBytesNumber. The recommended icon size is 128 × 128 pixels. + * The total number of the icon pixel bytes cannot exceed 192 KB (which is obtained through getPixelBytesNumber. + * The recommended icon size is 128 × 128 pixels. * The display effect depends on the device capability and notification center UI style. * * @type { ?image.PixelMap } diff --git a/api/notification/notificationRequest.d.ts b/api/notification/notificationRequest.d.ts index 96aefd6a2038f1eee8baf3e40cd03b9245603f97..20b82fb2829401697f6d9d468303567f5d6c7166 100644 --- a/api/notification/notificationRequest.d.ts +++ b/api/notification/notificationRequest.d.ts @@ -83,7 +83,8 @@ export interface NotificationRequest { * Unique ID carried in a notification sent by an app, which is used for notification deduplication. * If an app publishes notifications with the same appMessageId locally or on the cloud, the device displays only one message. * Repeated notifications received later will be silenced and deduplicated, and will not be displayed or notified. - * The deduplication flag is valid only within 24 hours after the notification is published. After 24 hours or the device is restarted, the deduplication flag becomes invalid. + * The deduplication flag is valid only within 24 hours after the notification is published. After 24 hours or the device is restarted, + * the deduplication flag becomes invalid. * * @type { ?string } * @syscap SystemCapability.Notification.Notification @@ -188,7 +189,8 @@ export interface NotificationRequest { /** * Time when the notification is automatically cleared. Data format: timestamp, in milliseconds. - * For example, if a notification is to be cleared after being displayed for 3 seconds (3000 ms), you can set new Date().getTime() + 3000 to meet this requirement. + * For example, if a notification is to be cleared after being displayed for 3 seconds (3000 ms), + * you can set new Date().getTime() + 3000 to meet this requirement. * * @type { ?number } * @syscap SystemCapability.Notification.Notification @@ -196,7 +198,8 @@ export interface NotificationRequest { */ /** * Time when the notification is automatically cleared. Data format: timestamp, in milliseconds. - * For example, if a notification is to be cleared after being displayed for 3 seconds (3000 ms), you can set new Date().getTime() + 3000 to meet this requirement. + * For example, if a notification is to be cleared after being displayed for 3 seconds (3000 ms), + * you can set new Date().getTime() + 3000 to meet this requirement. * * @type { ?number } * @syscap SystemCapability.Notification.Notification @@ -223,16 +226,6 @@ export interface NotificationRequest { */ extraInfo?: { [key: string]: any }; - /** - * Extended parameter. - * - * @type { Record } - * @syscap SystemCapability.Notification.Notification - * @systemapi - * @since 20 - */ - extendInfo?: Record; - /** * Background color of the notification. * @@ -253,7 +246,8 @@ export interface NotificationRequest { /** * Whether to send a notification only once when the notification is published or updated. - * - true: A notification is sent only when the notification is published for the first time. For subsequent update, the notification mode is changed to LEVEL_MIN. + * - true: A notification is sent only when the notification is published for the first time. For subsequent update, + * the notification mode is changed to LEVEL_MIN. * - false (default): A notification is sent based on the configured notification mode. * * @type { ?boolean } @@ -262,7 +256,8 @@ export interface NotificationRequest { */ /** * Whether to send a notification only once when the notification is published or updated. - * - true: A notification is sent only when the notification is published for the first time. For subsequent update, the notification mode is changed to LEVEL_MIN. + * - true: A notification is sent only when the notification is published for the first time. For subsequent update, + * the notification mode is changed to LEVEL_MIN. * - false (default): A notification is sent based on the configured notification mode. * * @type { ?boolean } @@ -345,7 +340,8 @@ export interface NotificationRequest { actionButtons?: Array; /** - * Small notification icon. Optional field. The total number of the icon pixel bytes cannot exceed 192 KB (which is obtained through getPixelBytesNumber. The recommended icon size is 128 px × 128 px. + * Small notification icon. Optional field. The total number of the icon pixel bytes cannot exceed 192 KB (which is + * obtained through getPixelBytesNumber. The recommended icon size is 128 px × 128 px. * * @type { ?image.PixelMap } * @syscap SystemCapability.Notification.Notification @@ -354,7 +350,8 @@ export interface NotificationRequest { smallIcon?: image.PixelMap; /** - * Large notification icon. Optional field. The total number of the icon pixel bytes cannot exceed 192 KB (which is obtained through getPixelBytesNumber. The recommended icon size is 128 px × 128 px. + * Large notification icon. Optional field. The total number of the icon pixel bytes cannot exceed 192 KB (which is + * obtained through getPixelBytesNumber. The recommended icon size is 128 px × 128 px. * * @type { ?image.PixelMap } * @syscap SystemCapability.Notification.Notification @@ -553,14 +550,16 @@ export interface NotificationRequest { removalWantAgent?: WantAgent; /** - * Number of notifications displayed on the application icon. If the badgeNumber is set to 0, badges are cleared; if the value is greater than 99, 99+ is displayed on the badge. + * Number of notifications displayed on the application icon. If the badgeNumber is set to 0, badges are cleared; + * if the value is greater than 99, 99+ is displayed on the badge. * * @type { ?number } * @syscap SystemCapability.Notification.Notification * @since 9 */ /** - * Number of notifications displayed on the application icon. If the badgeNumber is set to 0, badges are cleared; if the value is greater than 99, 99+ is displayed on the badge. + * Number of notifications displayed on the application icon. If the badgeNumber is set to 0, badges are cleared; + * if the value is greater than 99, 99+ is displayed on the badge. * * @type { ?number } * @syscap SystemCapability.Notification.Notification