diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index 4629c28f2ae7ac23f5c627f200db5cab2602563c..2031307419a4019a4dfb4f14153e2f997918b5e3 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 {