Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
Documentation
OnRPCResponseListener

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

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_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.

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