diff --git a/api/commonEvent/commonEventData.d.ts b/api/commonEvent/commonEventData.d.ts index 610a3068f4d1cf0eb38aa936d426bf1095a3e4ef..76b9db4030fe2e06ff00bce865a348315dbb2945 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 7fcfa6127934b63fd43124b1ae7167f9c94e7bb7..445248e1e273cf52d5fffa169186ceab1f9ddbc6 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