PayloadCallback

public abstract classPayloadCallbackextendsObject

Listener for incoming/outgoingPayloads between connected endpoints.

Public Constructor Summary

Public Method Summary

abstract void
onPayloadReceived(StringendpointId, Payload payload)
Called when aPayload is received from a remote endpoint.
abstract void
onPayloadTransferUpdate(StringendpointId, PayloadTransferUpdateupdate)
Called with progress information about an active Payload transfer, either incoming or outgoing.

Inherited Method Summary

Public Constructors

publicPayloadCallback()

Public Methods

public abstract voidonPayloadReceived(StringendpointId,Payload payload)

Called when aPayload is received from a remote endpoint. Depending on the type of thePayload, all of the data may or may not have been received at the time of this call. Use onPayloadTransferUpdate(String, PayloadTransferUpdate)to get updates on the status of the data received.

Parameters
endpointId The identifier for the remote endpoint that sent the payload.
payload ThePayload object received.

public abstract voidonPayloadTransferUpdate(StringendpointId,PayloadTransferUpdate update)

Called with progress information about an active Payload transfer, either incoming or outgoing.

Parameters
endpointId The identifier for the remote endpoint that is sending or receiving this payload.
update The PayloadTransferUpdatedescribing the status of the transfer.