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

Class OnPutFileUpdateListener

Package
com.smartdevicelink.proxy.rpc.listeners

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

OnPutFileUpdateListener()

public OnPutFileUpdateListener()

Methods

onStart( int correlationId )

public final void onStart(int correlationId)

Parameters

correlationId

onStart( int correlationId, long totalSize )

public void onStart(int correlationId,long totalSize)

Parameters

correlationId
totalSize

onResponse( int correlationId, RPCResponse response )

public final void onResponse(int correlationId,RPCResponse response)

Parameters

correlationId
response

onResponse( int correlationId, RPCResponse response, long totalSize )

Called when the putfile request is responded to.

public abstract void onResponse(int correlationId,RPCResponse response,long totalSize)

Parameters

correlationId
correlation ID tied to the original response
response
the PutFile response RPC
totalSize
total size of the file sent

onUpdate( int correlationId, long bytesWritten, long totalSize )

onUpdate is called during a putfile stream request

public void onUpdate(int correlationId,long bytesWritten,long totalSize)

Parameters

correlationId
of the original request
bytesWritten
the amount of bytes that have been written so far
totalSize
total size of the file that is being sent

setTotalSize( long totalSize )

public final void setTotalSize(long totalSize)

Parameters

totalSize

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.rpc.listeners.OnRPCResponseListener onReceived, onStart, onResponse, onError
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