From b7b945322c4d8e0e3c93f8b1e38797d0b8b90010 Mon Sep 17 00:00:00 2001 From: heguokai Date: Sat, 21 Jun 2025 11:31:14 +0800 Subject: [PATCH] =?UTF-8?q?@system.notification.d.ts=E4=BB=8Esdk7=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E5=BA=9F=E5=BC=83=E4=B8=8D=E5=9C=A8=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8arkts1.2=E4=B8=8D=E4=BD=93=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai --- api/@system.notification.d.ts | 40 +++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/api/@system.notification.d.ts b/api/@system.notification.d.ts index 1a7bc665c3..0f4704a85e 100644 --- a/api/@system.notification.d.ts +++ b/api/@system.notification.d.ts @@ -21,8 +21,8 @@ /** * @typedef ActionResult * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ export interface ActionResult { /** @@ -30,8 +30,8 @@ export interface ActionResult { * * @type { string } * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ bundleName: string; @@ -40,8 +40,8 @@ export interface ActionResult { * * @type { string } * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ abilityName: string; @@ -54,8 +54,8 @@ export interface ActionResult { * * @type { string } * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ uri: string; } @@ -63,8 +63,8 @@ export interface ActionResult { /** * @typedef ShowNotificationOptions * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ export interface ShowNotificationOptions { /** @@ -72,8 +72,8 @@ export interface ShowNotificationOptions { * * @type { ?string } * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ contentTitle?: string; @@ -82,8 +82,8 @@ export interface ShowNotificationOptions { * * @type { ?string } * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ contentText?: string; @@ -92,16 +92,19 @@ export interface ShowNotificationOptions { * * @type { ?ActionResult } * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 */ clickAction?: ActionResult; } /** + * Manages notifications. + * * @syscap SystemCapability.Notification.Notification - * @since arkts {'1.1':'3', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 3 + * @deprecated since 7 + * @useinstead ohos.notification/notification */ declare class Notification { /** @@ -110,6 +113,7 @@ declare class Notification { * @param { ShowNotificationOptions } [options] - Options. * @syscap SystemCapability.Notification.Notification * @since 3 + * @deprecated since 7 */ static show(options?: ShowNotificationOptions): void; } -- Gitee