IRemoteBroker@Deprecated public interface ICommonEventManager extends IRemoteBroker
SystemCapability.Notification#CES| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
CES_PUBLISH_COMMON_EVENT |
已过时。
|
static int |
CES_REGISTER_SUBSCRIBER |
已过时。
|
static int |
CES_UNREGISTER_SUBSCRIBER |
已过时。
|
static String |
DESCRIPTOR |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
publishCommonEvent(CommonEventData data,
CommonEventPublishInfo publishInfo,
ICommonEventSubscriber resultSubscriber) |
已过时。
|
void |
subscribeCommonEvent(ICommonEventSubscriber subscriber,
CommonEventSubscribeInfo subscribeInfo) |
已过时。
|
void |
unsubscribeCommonEvent(ICommonEventSubscriber subscriber) |
已过时。
|
asObject@Deprecated static final int CES_PUBLISH_COMMON_EVENT
publishCommonEvent(ohos.event.commonevent.CommonEventData,ohos.event.commonevent.CommonEventPublishInfo,ohos.event.commonevent.ICommonEventSubscriber)
method requested by the client.@Deprecated static final int CES_REGISTER_SUBSCRIBER
subscribeCommonEvent(ohos.event.commonevent.ICommonEventSubscriber,ohos.event.commonevent.CommonEventSubscribeInfo) method
requested by the client.@Deprecated static final int CES_UNREGISTER_SUBSCRIBER
unsubscribeCommonEvent(ohos.event.commonevent.ICommonEventSubscriber) method requested by the client.@Deprecated static final String DESCRIPTOR
@Deprecated void subscribeCommonEvent(ICommonEventSubscriber subscriber, CommonEventSubscribeInfo subscribeInfo) throws RemoteException
ICommonEventManager service based
on the info parameter.subscriber - Indicates the ICommonEventSubscriber callback object.subscribeInfo - Indicates the CommonEventSubscribeInfo object containing
subscription information.RemoteException - Throws this exception if an inter-process communication (IPC) exception occurs.@Deprecated void unsubscribeCommonEvent(ICommonEventSubscriber subscriber) throws RemoteException
ICommonEventManager service.subscriber - Indicates the ICommonEventSubscriber callback object.RemoteException - Throws this exception if an IPC exception occurs.@Deprecated void publishCommonEvent(CommonEventData data, CommonEventPublishInfo publishInfo, ICommonEventSubscriber resultSubscriber) throws RemoteException
data - Indicates the CommonEventData object containing the common event content.publishInfo - Indicates the CommonEventPublishInfo object containing the
common event attributes, such as the permission, user ID, and device ID.resultSubscriber - Indicates the last CommonEventSubscriber to receive
the ordered common event. Generally, the current application is specified as the last
subscriber to receive its own common event and obtain the common event publishing result.RemoteException - Throws this exception if an IPC exception occurs.