MessageType
- handles messages of this typepublic interface ServiceResponseListener<MessageType>
Modifier and Type | Method and Description |
---|---|
void |
onFailure(RemoteException e)
Called when a service method fails to return successfully.
|
void |
onSuccess(MessageType response)
Called when a service method returns successfully.
|
void onSuccess(MessageType response)
response
- the response messagevoid onFailure(RemoteException e)
e
- the RemoteException
received from the service