From 164ce18120ee1ff31c35629c6334acf8b54e4147 Mon Sep 17 00:00:00 2001 From: heguokai <275503077@qq.com> Date: Fri, 29 Aug 2025 18:59:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?NotificationMultiLineContent=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0lineWantAgents=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai <275503077@qq.com> --- api/notification/notificationContent.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/notification/notificationContent.d.ts b/api/notification/notificationContent.d.ts index b2b367c6ff..749290805c 100644 --- a/api/notification/notificationContent.d.ts +++ b/api/notification/notificationContent.d.ts @@ -23,7 +23,10 @@ import { Resource } from '../global/resource'; import type notificationManager from '../@ohos.notificationManager'; /*** if arkts 1.1 */ import notification from '../@ohos.notification'; +import { WantAgent } from '../@ohos.wantAgent'; /*** endif */ +/*** if arkts 1.2 */ +import { WantAgent } from '../@ohos.app.ability.wantAgent'; /** * Describes icon type. @@ -412,6 +415,17 @@ export interface NotificationMultiLineContent extends NotificationBasicContent { * @arkts 1.1&1.2 */ lines: Array; + + /** + * Multi-line wantAgent of the multi-line text notification. + * @permission ohos.permission.NOTIFICATION_AGENT_CONTROLLER + * @type { ?Array } + * @syscap SystemCapability.Notification.Notification + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + lineWantAgents?: Array; } /** -- Gitee From e354fbc8b6e65d6eb1c5aa00c6d55b9de2e485c6 Mon Sep 17 00:00:00 2001 From: heguokai Date: Sat, 30 Aug 2025 05:32:08 +0000 Subject: [PATCH 2/2] update api/notification/notificationContent.d.ts. Signed-off-by: heguokai --- api/notification/notificationContent.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/notification/notificationContent.d.ts b/api/notification/notificationContent.d.ts index 749290805c..156e00b705 100644 --- a/api/notification/notificationContent.d.ts +++ b/api/notification/notificationContent.d.ts @@ -27,6 +27,7 @@ import { WantAgent } from '../@ohos.wantAgent'; /*** endif */ /*** if arkts 1.2 */ import { WantAgent } from '../@ohos.app.ability.wantAgent'; +/*** endif */ /** * Describes icon type. -- Gitee