public interface ConnectionQualityListener
|Modifier and Type||Method and Description|
Notifies a listener of a change in device connection quality.
void onConnectionQualityChange(ConnectionQuality previousConnectionQuality, ConnectionQuality newConnectionQuality, int currentBandwidth)
The quality can be one of
ConnectionQuality, and a listener can be registered by
A listener can be removed by calling
The listener will be invoked immediately after registration with the last connection quality measurement, and then invoked again for every change in quality.
previousConnectionQuality- the previously measured connection quality
newConnectionQuality- the new connection quality
currentBandwidth- the current estimated bandwidth in kilobits / second