Listener for incoming/outgoing Payload
s
between connected endpoints.
Public Constructor Summary
Public Method Summary
abstract void |
onPayloadReceived(String endpointId,
Payload
payload)
Called when a
Payload
is received from a remote endpoint.
|
abstract void |
onPayloadTransferUpdate(String endpointId,
PayloadTransferUpdate update)
Called with progress information about an active Payload transfer, either
incoming or outgoing.
|
Inherited Method Summary
Public Constructors
public PayloadCallback ()
Public Methods
public abstract void onPayloadReceived (String endpointId, Payload payload)
Called when a Payload
is received from a remote endpoint. Depending on the type of the Payload
,
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 | The Payload
object received. |
public abstract void onPayloadTransferUpdate (String endpointId, 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
PayloadTransferUpdate describing the status of the transfer. |