mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
通知相关资料修改
Signed-off-by: wufarong <wufarong@huawei.com> Change-Id: I15fb1fcfc7320c662b059ad838ea39ac93038e84
This commit is contained in:
parent
32df499131
commit
23410ce4f1
20
api/@ohos.commonEventManager.d.ts
vendored
20
api/@ohos.commonEventManager.d.ts
vendored
@ -48,7 +48,7 @@ declare namespace commonEventManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of publish.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -62,7 +62,7 @@ declare namespace commonEventManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of publish.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -77,7 +77,7 @@ declare namespace commonEventManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of publish.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -97,7 +97,7 @@ declare namespace commonEventManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of publish.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -113,7 +113,7 @@ declare namespace commonEventManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of publish.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -130,7 +130,7 @@ declare namespace commonEventManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of publish.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -150,7 +150,7 @@ declare namespace commonEventManager {
|
||||
* @throws { BusinessError } 202 - not system app
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -171,7 +171,7 @@ declare namespace commonEventManager {
|
||||
* @throws { BusinessError } 202 - not system app
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not System services or System app
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @throws { BusinessError } 1500009 - error obtaining system parameters
|
||||
@ -332,7 +332,7 @@ declare namespace commonEventManager {
|
||||
* @throws { BusinessError } 202 - not system app
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not system service
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @syscap SystemCapability.Notification.CommonEvent
|
||||
@ -351,7 +351,7 @@ declare namespace commonEventManager {
|
||||
* @throws { BusinessError } 202 - not system app
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 1500004 - not system service
|
||||
* @throws { BusinessError } 1500004 - cannot send system common events
|
||||
* @throws { BusinessError } 1500007 - error sending message to Common Event Service
|
||||
* @throws { BusinessError } 1500008 - Common Event Service does not complete initialization
|
||||
* @syscap SystemCapability.Notification.CommonEvent
|
||||
|
7
api/@ohos.notificationManager.d.ts
vendored
7
api/@ohos.notificationManager.d.ts
vendored
@ -692,7 +692,7 @@ declare namespace notificationManager {
|
||||
function addSlot(type: SlotType): Promise<void>;
|
||||
|
||||
/**
|
||||
* Creates a notification slot.
|
||||
* Creates notification slots.
|
||||
*
|
||||
* @permission ohos.permission.NOTIFICATION_CONTROLLER
|
||||
* @param { Array<NotificationSlot> } slots - Indicates the notification slots to be created, which is set by {@link NotificationSlot}.
|
||||
@ -712,7 +712,7 @@ declare namespace notificationManager {
|
||||
function addSlots(slots: Array<NotificationSlot>, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Creates a notification slot.
|
||||
* Creates notification slots.
|
||||
*
|
||||
* @permission ohos.permission.NOTIFICATION_CONTROLLER
|
||||
* @param { Array<NotificationSlot> } slots - Indicates the notification slots to be created, which is set by {@link NotificationSlot}.
|
||||
@ -2596,8 +2596,7 @@ declare namespace notificationManager {
|
||||
*
|
||||
* @permission ohos.permission.NOTIFICATION_CONTROLLER and ohos.permission.NOTIFICATION_AGENT_CONTROLLER
|
||||
* @param { 'checkNotification' } type - Type of the callback to listen for.
|
||||
* @param { function } [callback] - callback - The callback
|
||||
* of check notifications.
|
||||
* @param { function } [callback] - callback - The callback of check notifications.
|
||||
* @throws { BusinessError } 202 - Not system application.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* <br>2. Incorrect parameter types. 3. Parameter verification failed.
|
||||
|
6
api/notification/notificationContent.d.ts
vendored
6
api/notification/notificationContent.d.ts
vendored
@ -299,14 +299,14 @@ export interface NotificationMultiLineContent extends NotificationBasicContent {
|
||||
briefText: string;
|
||||
|
||||
/**
|
||||
* Brief text of the multi-line text notification.
|
||||
* Long title of the multi-line text notification.
|
||||
*
|
||||
* @type { string }
|
||||
* @syscap SystemCapability.Notification.Notification
|
||||
* @since 7
|
||||
*/
|
||||
/**
|
||||
* Brief text of the multi-line text notification.
|
||||
* Long title of the multi-line text notification.
|
||||
*
|
||||
* @type { string }
|
||||
* @syscap SystemCapability.Notification.Notification
|
||||
@ -342,7 +342,7 @@ export interface NotificationMultiLineContent extends NotificationBasicContent {
|
||||
*/
|
||||
export interface NotificationPictureContent extends NotificationBasicContent {
|
||||
/**
|
||||
* Multi-line content of the multi-line text notification.
|
||||
* Brief text of the multi-line text notification.
|
||||
*
|
||||
* @type { string }
|
||||
* @syscap SystemCapability.Notification.Notification
|
||||
|
Loading…
Reference in New Issue
Block a user