public class NfcController.ReaderModeCallbackStub extends RemoteObject implements NfcController.ReaderModeCallback
IRemoteObject.DeathRecipientDUMP_TRANSACTION, INTERFACE_TRANSACTION, MAX_TRANSACTION_ID, MIN_TRANSACTION_ID, PING_TRANSACTIONTRANSACTION_ON_CALLBACK| 构造器 | 说明 |
|---|---|
ReaderModeCallbackStub(NfcController.ReaderModeCallback callback) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
IRemoteObject |
asObject() |
Obtains the holder of a remote proxy object.
|
boolean |
onRemoteRequest(int code,
MessageParcel data,
MessageParcel reply,
MessageOption option) |
Sets an entry for receiving requests.
|
void |
onTagDiscovered(TagInfo tagInfo) |
Called when a tag is discovered.
|
public ReaderModeCallbackStub(NfcController.ReaderModeCallback callback)
public boolean onRemoteRequest(int code,
MessageParcel data,
MessageParcel reply,
MessageOption option)
throws RemoteException
RemoteObjectThis method is implemented by the remote service provider. You need to override this method with your own service logic when you are using IPC.
onRemoteRequest 在类中 RemoteObjectcode - Indicates the service request code sent from the peer end.data - Indicates the MessageParcel object sent from the peer end.reply - Indicates the response message object sent from the remote service.
The local service writes the response data to the MessageParcel object.option - Indicates whether the operation is synchronous or asynchronous.true if the operation succeeds; returns false otherwise.RemoteException - Throws this exception if a remote service error occurs.public IRemoteObject asObject()
IRemoteBrokerasObject 在接口中 IRemoteBrokerRemoteObject if the caller is RemoteObject;
returns IRemoteObject if the caller is RemoteProxy.public void onTagDiscovered(TagInfo tagInfo)
NfcController.ReaderModeCallbackonTagDiscovered 在接口中 NfcController.ReaderModeCallbacktagInfo - Indicates information of the discovered tag.