From 8dcf951da4ff018241594fc417510dc1621b0813 Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Mon, 18 Jul 2022 20:06:37 +0800 Subject: [PATCH] fixed 0f58a6c from https://gitee.com/fangJinliang1/interface_sdk-js/pulls/2212 add trigger interface Signed-off-by: fangJinliang1 Change-Id: I80bb2b3193271691efeee10e809ed44be89157fd Signed-off-by: fangJinliang1 --- api/@ohos.notification.d.ts | 7 +++---- api/@ohos.wantAgent.d.ts | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index 2031307419..58b64827c3 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -70,8 +70,7 @@ declare namespace notification { * @param representativeBundle bundle name of the representative * @param userId userid of the representative * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - * @permission ohos.permission.NOTIFICATION_AGENT_CONTROLLER + * @permission ohos.permission.NOTIFICATION_CONTROLLER and ohos.permission.NOTIFICATION_AGENT_CONTROLLER * */ function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number, callback: AsyncCallback): void; @@ -103,8 +102,8 @@ declare namespace notification { * @param representativeBundle bundle name of the representative * @param userId userid of the representative * @param callback callback function - * @permission ohos.permission.NOTIFICATION_CONTROLLER - * @permission ohos.permission.NOTIFICATION_AGENT_CONTROLLER + * @systemapi Hide this for inner system use. + * @permission ohos.permission.NOTIFICATION_CONTROLLER and ohos.permission.NOTIFICATION_AGENT_CONTROLLER */ function cancelAsBundle(id: number, representativeBundle: string, userId: number, callback: AsyncCallback): void; function cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise; diff --git a/api/@ohos.wantAgent.d.ts b/api/@ohos.wantAgent.d.ts index 5660d49567..1873df91c2 100644 --- a/api/@ohos.wantAgent.d.ts +++ b/api/@ohos.wantAgent.d.ts @@ -81,6 +81,7 @@ declare namespace wantAgent { * @param callback Indicates the callback method to be called after the {@link WantAgent} is triggered. */ function trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: Callback): void; + function trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback): void; /** * Checks whether two WantAgent objects are equal. -- Gitee