Sequenceablepublic final class CourierEx extends Courier
InnerEvent objects by creating a CourierEx that points to a specific event handler in a process and
handing the CourierEx to another process.Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<CourierEx> |
PRODUCER |
Creates a
CourierEx instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
CourierEx(EventHandlerEx eventHandler) |
A constructor used to create a
CourierEx instance based on the given EventHandlerEx. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
IRemoteObject |
getRemoteObject() |
Obtains the
IRemoteObject object used by this CourierEx to communicate with its
EventHandler. |
boolean |
marshalling(Parcel out) |
Marshals a
CourierEx object into a Parcel. |
void |
send(InnerEvent innerEvent) |
Sends an
InnerEvent to this CourierEx for IPC. |
boolean |
unmarshalling(Parcel in) |
Unmarshals a
CourierEx object from a Parcel. |
hasFileDescriptorpublic static final Sequenceable.Producer<CourierEx> PRODUCER
CourierEx instance from a Parcel.public CourierEx(EventHandlerEx eventHandler)
CourierEx instance based on the given EventHandlerEx.eventHandler - Indicates the EventHandlerEx object that will receive inner events.public void send(InnerEvent innerEvent) throws RemoteException
InnerEvent to this CourierEx for IPC.send 在类中 CourierinnerEvent - Indicates the InnerEvent object to send.RemoteException - Throws this exception if the EventHandler referenced by this CourierEx
does not exist.public IRemoteObject getRemoteObject()
IRemoteObject object used by this CourierEx to communicate with its
EventHandler.getRemoteObject 在类中 CourierIRemoteObject object.public boolean marshalling(Parcel out)
CourierEx object into a Parcel.marshalling 在接口中 Sequenceablemarshalling 在类中 Courierout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
CourierEx object from a Parcel.unmarshalling 在接口中 Sequenceableunmarshalling 在类中 Courierin - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.