From fbaf50ba7107185ebc3c0b784c401f19afae2400 Mon Sep 17 00:00:00 2001 From: zc Date: Fri, 28 Feb 2025 09:59:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=9A=E8=A1=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=94=AF=E6=8C=81lineWantAgent=20Signed-off-by:=20zhangchen=20?= =?UTF-8?q??= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/notification/notificationContent.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/notification/notificationContent.d.ts b/api/notification/notificationContent.d.ts index fda668c082..d1a7d52cb5 100644 --- a/api/notification/notificationContent.d.ts +++ b/api/notification/notificationContent.d.ts @@ -22,6 +22,7 @@ import notification from '../@ohos.notification'; import image from '../@ohos.multimedia.image'; import { Resource } from '../global/resource'; import type notificationManager from '../@ohos.notificationManager'; +import type { WantAgent } from '../@ohos.wantAgent'; /** * Describes icon type. @@ -379,6 +380,16 @@ export interface NotificationMultiLineContent extends NotificationBasicContent { * @since 12 */ lines: Array; + + /** + * Multi0-line wantAgent of the multi-line text notification. + * @permission ohos.permission.NOTIFICATION_AGENT_CONTROLLER + * @type { ?Array } + * @syscap SystemCapability.Notification.Notification + * @systemapi + * @since 16 + */ + lineWantAgents?: Array; } /** -- Gitee From 00a89509665804b3940da5aaa46d2cf623993b16 Mon Sep 17 00:00:00 2001 From: wszdca <9732529+wszdca1@user.noreply.gitee.com> Date: Thu, 19 Jun 2025 03:08:41 +0000 Subject: [PATCH 2/2] update api/notification/notificationContent.d.ts. Signed-off-by: wszdca <9732529+wszdca1@user.noreply.gitee.com> --- api/notification/notificationContent.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/notification/notificationContent.d.ts b/api/notification/notificationContent.d.ts index d1a7d52cb5..991b4eff58 100644 --- a/api/notification/notificationContent.d.ts +++ b/api/notification/notificationContent.d.ts @@ -387,7 +387,7 @@ export interface NotificationMultiLineContent extends NotificationBasicContent { * @type { ?Array } * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 16 + * @since 20 */ lineWantAgents?: Array; } -- Gitee