NetworkQualityThroughputListener

public abstract class NetworkQualityThroughputListener


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

Summary

Public constructors

Public methods

Executor
abstract void
onThroughputObservation(int throughputKbps, long whenMs, int source)

Reports a new throughput observation.

Public constructors

NetworkQualityThroughputListener

public NetworkQualityThroughputListener(Executor executor)
Parameters
Executor executor

The executor on which the observations are reported.

Public methods

getExecutor

public Executor getExecutor()

onThroughputObservation

public abstract void onThroughputObservation(int throughputKbps, long whenMs, int source)

Reports a new throughput observation.

Parameters
int throughputKbps

the downstream throughput in kilobits per second.

long whenMs

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

int source

the observation source from NetworkQualityObservationSource.