onLastmileQuality property

(void Function(QualityType quality)?) onLastmileQuality
final

Reports the last-mile network quality of the local user. This callback reports the last-mile network conditions of the local user before the user joins the channel. Last mile refers to the connection between the local device and Agora's edge server.Before the user joins the channel, this callback is triggered by the SDK once startLastmileProbeTest is called and reports the last-mile network conditions of the local user.

  • quality The last-mile network quality. qualityUnknown(0): The quality is unknown. qualityExcellent(1): The quality is excellent. qualityGood(2): The network quality seems excellent, but the bitrate can be slightly lower than excellent. qualityPoor(3): Users can feel the communication is slightly impaired. qualityBad(4): Users cannot communicate smoothly. qualityVbad(5): The quality is so bad that users can barely communicate. qualityDown(6): The network is down, and users cannot communicate at all. See QualityType .

Implementation

final void Function(QualityType quality)? onLastmileQuality;