From 20be46b1875cc75985598e1ebcf15310683b8b2f Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Sat, 7 Jun 2025 10:40:52 +0800 Subject: [PATCH] WantAgentInfo userId Signed-off-by: zhangzezhong --- api/wantAgent/wantAgentInfo.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/wantAgent/wantAgentInfo.d.ts b/api/wantAgent/wantAgentInfo.d.ts index 2c2b198199..56f13c6c44 100644 --- a/api/wantAgent/wantAgentInfo.d.ts +++ b/api/wantAgent/wantAgentInfo.d.ts @@ -187,4 +187,15 @@ export interface WantAgentInfo { * @since 12 */ extraInfos?: Record; + + /** + * Indicates the user ID, If the user ID not specified, the current user ID is used by default. + * + * @type { ?number } + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi + * @stagemodelonly + * @since 20 + */ + userId?: number; } -- Gitee