downstreamBandwidth

@get:RequiresPermission(value = "android.permission.ACCESS_NETWORK_STATE")
val Context.downstreamBandwidth: Int

Context Extension to check the downstream bandwidth that the user has with his Internet connection, this will return an Int with the amount of downstream bandwidth

The ACCESS_NETWORK_STATE permission must be included in the Context.connectivityManager for this function to be performed correctly

See also

com.jeluchu.jchucomponents.core.extensions.context.connectivityManager