From 4b6b2ceba65604c2c9383c495ffd4e14af0cd545 Mon Sep 17 00:00:00 2001 From: zengsiyu Date: Mon, 14 Mar 2022 11:23:32 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20bd2992e=20from=20https://gitee.com/zeng?= =?UTF-8?q?siyu3/interface=5Fsdk-js/pulls/1086=20fix:=20=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=8E=A5=E5=8F=A3=E8=A1=A5=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zengsiyu Change-Id: I539ad8e4e4a475553cd78e5198640f305b852b7c Signed-off-by: zengsiyu --- api/@ohos.notification.d.ts | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index 5ca1f74e4f..b93b0ba93a 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"), * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -57,7 +57,7 @@ declare namespace notification { * @param userId of subscriber receiving the notification * @systemapi Hide this for inner system use. * @permission ohos.permission.NOTIFICATION_CONTROLLER - * + * */ function publish(request: NotificationRequest, userId: number, callback: AsyncCallback): void; function publish(request: NotificationRequest, userId: number): Promise; @@ -834,6 +834,29 @@ declare namespace notification { */ ACTIVE_REMIND = 3, } + + /** + * Notification source type + * + * @since 8 + * @systemapi Hide this for inner system use. + */ + export enum SourceType { + /** + * General notification + */ + TYPE_NORMAL = 0, + + /** + * Continuous notification + */ + TYPE_CONTINUOUS = 1, + + /** + * Scheduled notification + */ + TYPE_TIMER = 2, + } } export default notification; -- Gitee