public static interface BandwidthMeter.EventListener
BandwidthMeter
events.Modifier and Type | Method and Description |
---|---|
void |
onBandwidthSample(int elapsedMs,
long bytes,
long bitrate)
Invoked periodically to indicate that bytes have been transferred.
|
void onBandwidthSample(int elapsedMs, long bytes, long bitrate)
elapsedMs
- The time taken to transfer the bytes, in milliseconds.bytes
- The number of bytes transferred.bitrate
- The estimated bitrate in bits/sec, or BandwidthMeter.NO_ESTIMATE
if no estimate
is available. Note that this estimate is typically derived from more information than
bytes
and elapsedMs
.