mirror of
https://github.com/openharmony/notification_notification_cangjie_wrapper.git
synced 2026-07-01 06:41:51 -04:00
@@ -47,7 +47,8 @@ public class CommonEventData {
|
||||
public var 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.
|
||||
* CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default
|
||||
* value is 0.
|
||||
*/
|
||||
@!APILevel[
|
||||
22,
|
||||
@@ -65,7 +66,8 @@ public class CommonEventData {
|
||||
public var 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.
|
||||
* that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to
|
||||
* publish a common event.
|
||||
*/
|
||||
@!APILevel[
|
||||
22,
|
||||
|
||||
@@ -29,7 +29,8 @@ public import ohos.common_event_subscriber.CommonEventSubscriber
|
||||
public import ohos.value_type.ValueType
|
||||
|
||||
/**
|
||||
* The CommonEventManager module provides common event capabilities, including the capabilities to publish, subscribe to, and unsubscribe from common events.
|
||||
* The CommonEventManager module provides common event capabilities, including the capabilities to publish, subscribe
|
||||
* to, and unsubscribe from common events.
|
||||
*/
|
||||
@!APILevel[
|
||||
22,
|
||||
|
||||
@@ -71,7 +71,8 @@ public class CommonEventPublishData {
|
||||
]
|
||||
public var isOrdered: Bool
|
||||
/**
|
||||
* Whether the common event is a sticky one. Only system applications and system services are allowed to send sticky events.
|
||||
* Whether the common event is a sticky one. Only system applications and system services are allowed to
|
||||
* send sticky events.
|
||||
*/
|
||||
@!APILevel[
|
||||
22,
|
||||
|
||||
@@ -78,7 +78,8 @@ public class CommonEventSubscribeInfo {
|
||||
]
|
||||
public var events: Array<String>
|
||||
/**
|
||||
* Subscriber priority. The value ranges from –100 to +1000. If the value exceeds the upper or lower limit, the upper or lower limit is used.
|
||||
* Subscriber priority. The value ranges from –100 to +1000. If the value exceeds the upper or lower limit, the
|
||||
* upper or lower limit is used.
|
||||
*/
|
||||
@!APILevel[
|
||||
22,
|
||||
@@ -86,8 +87,9 @@ public class CommonEventSubscribeInfo {
|
||||
]
|
||||
public var priority: Int32
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@!APILevel[
|
||||
22,
|
||||
|
||||
Reference in New Issue
Block a user