diff --git a/api/@system.notification.d.ts b/api/@system.notification.d.ts index 1a7bc665c37500b05e2f72278b2cb61db0ccf725..0f4704a85edb9e8d5cc2c88f64091a710dd65b62 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; }