From 04256e21b6d74ebbacb13aaa2389222b18705cec Mon Sep 17 00:00:00 2001 From: yizihan Date: Tue, 24 Jun 2025 11:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=A1=E6=81=AF=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yizihan Change-Id: I6a18895a499da5c0c8205f0c652642a5959a22bf --- api/commonEvent/commonEventData.d.ts | 21 ++++++++++++------- api/commonEvent/commonEventSubscribeInfo.d.ts | 6 ++++-- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/api/commonEvent/commonEventData.d.ts b/api/commonEvent/commonEventData.d.ts index 610a3068f4..76b9db4030 100644 --- a/api/commonEvent/commonEventData.d.ts +++ b/api/commonEvent/commonEventData.d.ts @@ -74,7 +74,8 @@ export interface CommonEventData { bundleName?: string; /** - * Common event data received by the subscriber. The value of this field is the same as that of the code field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. + * Common event data received by the subscriber. The value of this field is the same as that of the code field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. * * @type { ?number } * @default 0 @@ -82,7 +83,8 @@ export interface CommonEventData { * @since 7 */ /** - * Common event data received by the subscriber. The value of this field is the same as that of the code field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. + * Common event data received by the subscriber. The value of this field is the same as that of the code field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default value is 0. * * @type { ?number } * @default 0 @@ -94,14 +96,16 @@ export interface CommonEventData { code?: number; /** - * Common event data received by the subscriber. The value of this field is the same as that of the data field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Common event data received by the subscriber. The value of this field is the same as that of the data field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent * @since 7 */ /** - * Common event data received by the subscriber. The value of this field is the same as that of the data field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Common event data received by the subscriber. The value of this field is the same as that of the data field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent @@ -109,7 +113,8 @@ export interface CommonEventData { * @since 11 */ /** - * Common event data received by the subscriber. The value of this field is the same as that of the data field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Common event data received by the subscriber. The value of this field is the same as that of the data field in + * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?string } * @syscap SystemCapability.Notification.CommonEvent @@ -121,14 +126,16 @@ export interface CommonEventData { data?: string; /** - * Additional information about the common event received by the subscriber. The value of this field is the same as that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Additional information about the common event received by the subscriber. The value of this field is the same as + * that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?object } * @syscap SystemCapability.Notification.CommonEvent * @since 7 */ /** - * Additional information about the common event received by the subscriber. The value of this field is the same as that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. + * Additional information about the common event received by the subscriber. The value of this field is the same as + * that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. * * @type { ?object } * @syscap SystemCapability.Notification.CommonEvent diff --git a/api/commonEvent/commonEventSubscribeInfo.d.ts b/api/commonEvent/commonEventSubscribeInfo.d.ts index 7fcfa61279..445248e1e2 100644 --- a/api/commonEvent/commonEventSubscribeInfo.d.ts +++ b/api/commonEvent/commonEventSubscribeInfo.d.ts @@ -92,14 +92,16 @@ export interface CommonEventSubscribeInfo { publisherDeviceId?: string; /** - * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. + * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. + * The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. * * @type { ?number } * @syscap SystemCapability.Notification.CommonEvent * @since 7 */ /** - * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. + * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be used. + * The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account ID and use it as the user ID of the subscriber. * * @type { ?number } * @syscap SystemCapability.Notification.CommonEvent -- Gitee