Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class OnRPCResponseListener

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.rpc.listeners.OnRPCListener

Package
com.smartdevicelink.proxy.rpc.listeners
All Known Subclasses
com.smartdevicelink.proxy.rpc.listeners.OnMultipleRequestListener, com.smartdevicelink.proxy.rpc.listeners.OnPutFileUpdateListener

Fields

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.rpc.listeners.OnRPCListener UPDATE_LISTENER_TYPE_ALL_RPCS, UPDATE_LISTENER_TYPE_BASE_RPC, UPDATE_LISTENER_TYPE_PUT_FILE, UPDATE_LISTENER_TYPE_MULTIPLE_REQUESTS

Constructors

OnRPCResponseListener()

public OnRPCResponseListener()

Methods

onReceived( RPCMessage message )

public final void onReceived(RPCMessage message)

Parameters

message

onStart( int correlationId )

This method will be called once the packet has been entered into the queue of messages to send

public void onStart(int correlationId)

Parameters

correlationId

onResponse( int correlationId, RPCResponse response )

This is the only method that must be extended. Other methods that are able to be extended are onStart and onError.

public abstract void onResponse(int correlationId,RPCResponse response)

Parameters

correlationId
response
This will be the response message received from the core side. It should be cast into a corresponding RPC Response type. ie, if setting this for a PutFile request, the message parameter should be cast to a PutFileResponse class.

onError( int correlationId, Result resultCode, String info )

Called when there was some sort of error during the original request.

public void onError(int correlationId,Result resultCode,String info)

Parameters

correlationId
resultCode
info

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.rpc.listeners.OnRPCListener setListenerType, getListenerType, onReceived
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section