NetworkQualityThroughputListener

abstract class NetworkQualityThroughputListener


Listener that is notified of throughput observations from the network quality estimator.

Summary

Public constructors

Public functions

Executor!
abstract Unit
onThroughputObservation(throughputKbps: Int, whenMs: Long, source: Int)

Reports a new throughput observation.

Public constructors

NetworkQualityThroughputListener

NetworkQualityThroughputListener(executor: Executor!)
Parameters
executor: Executor!

The executor on which the observations are reported.

Public functions

getExecutor

fun getExecutor(): Executor!

onThroughputObservation

abstract fun onThroughputObservation(throughputKbps: Int, whenMs: Long, source: Int): Unit

Reports a new throughput observation.

Parameters
throughputKbps: Int

the downstream throughput in kilobits per second.

whenMs: Long

milliseconds since the Epoch (January 1st 1970, 00:00:00.000).

source: Int

the observation source from NetworkQualityObservationSource.