NetworkInfo

data class NetworkInfo(val userID: String = "", val quality: NetworkQuality = NetworkQuality.EXCELLENT, val upLoss: Int = 0, val downLoss: Int = 0, val delay: Int = 0)

Network information

Constructors

Link copied to clipboard
constructor(userID: String = "", quality: NetworkQuality = NetworkQuality.EXCELLENT, upLoss: Int = 0, downLoss: Int = 0, delay: Int = 0)

Properties

Link copied to clipboard
val delay: Int = 0

Delay (unit: milliseconds)

Link copied to clipboard
val downLoss: Int = 0

Downlink packet loss rate, range 0, 100

Link copied to clipboard

Network quality. {@link NetworkQuality}

Link copied to clipboard
val upLoss: Int = 0

Uplink packet loss rate, range 0, 100

Link copied to clipboard

User unique ID.