From b9ce0d9cb7afa54a4ac5b46650a45e691b375701 Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Mon, 20 Jun 2022 10:17:02 +0800 Subject: [PATCH] add js interface Signed-off-by: fangJinliang1 Change-Id: I3c7691215e282b60133f42ae36afd43284512b45 --- api/@ohos.notification.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index 4629c28f2a..2031307419 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -737,7 +737,18 @@ declare namespace notification { */ function setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean, callback: AsyncCallback): void; function setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean): Promise; + /** + * Obtains whether to sync notifications to devices that do not have the app installed. + * + * @since 9 + * @systemapi Hide this for inner system use. + * @permission ohos.permission.NOTIFICATION_CONTROLLER + */ + function getSyncNotificationEnabledForUninstallApp(userId: number, callback: AsyncCallback): void; + function getSyncNotificationEnabledForUninstallApp(userId: number): Promise; + + /** * Describes a BundleOption. */ export interface BundleOption { -- Gitee