public interface TransferListener<S>
| Modifier and Type | Method and Description |
|---|---|
void |
onBytesTransferred(S source,
int bytesTransferred)
Called incrementally during a transfer.
|
void |
onTransferEnd(S source)
Called when a transfer ends.
|
void |
onTransferStart(S source,
DataSpec dataSpec)
Called when a transfer starts.
|
void onTransferStart(S source, DataSpec dataSpec)
source - The source performing the transfer.dataSpec - Describes the data being transferred.void onBytesTransferred(S source, int bytesTransferred)
source - The source performing the transfer.bytesTransferred - The number of bytes transferred since the previous call to this
method (or if the first call, since the transfer was started).void onTransferEnd(S source)
source - The source performing the transfer.