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