The following functions are supported:
| 接口 | 说明 |
|---|---|
| ICommonEventManager | 已过时。
This change is effective since API version 5.
|
| ICommonEventSubscriber | 已过时。
This change is effective since API version 5.
|
| 类 | 说明 |
|---|---|
| AsyncCommonEventResult |
Encapsulates the asynchronous result of the current ordered common event.
|
| CommonEventData |
Carries common events, for example, publishing common event contents and storing common events
received after subscription.
|
| CommonEventManager |
Manages common events, such as publishing, subscribing to, and unsubscribing from common events.
|
| CommonEventPublishInfo |
Provides information for publishing common events, including setting subscriber filter criteria,
common event type and mode.
|
| CommonEventSubscribeInfo |
Sets filter criteria of publishers, such as the device ID and permission, for subscribing to desired common events.
|
| CommonEventSubscriber |
Provides methods that will be called back when a subscriber receives a new common event.
|
| CommonEventSupport |
Provides a series of static system-level constants of common events.
|
| MatchingSkills |
Encapsulates particular common events to which a subscriber wants to subscribe.
|
| 枚举 | 说明 |
|---|---|
| CommonEventSubscribeInfo.ThreadMode |
Specifies the thread mode so that the callback method of the subscriber runs on the specified thread.
|