diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index 2031307419a4019a4dfb4f14153e2f997918b5e3..58b64827c3de54c3e66575c45080e317f1527ad5 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 5660d49567e4b9648f41aa5cc0a54619438703eb..1873df91c2c15e28befbd5158506445ab59d7b2e 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.