Skip to content

NetworkInfo

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

data class NetworkInfo(val connectivity: NetworkInfo.Connectivity = Connectivity.NETWORK_NOT_CONNECTED, val carrierName: String? = null, val carrierId: Long? = null, val upKbps: Long? = null, val downKbps: Long? = null, val strength: Long? = null, val cellularTechnology: String? = null)

Holds information about the current network state.

Types

NetworkInfo.Connectivity

Constructors

NetworkInfo

constructor(connectivity: NetworkInfo.Connectivity = Connectivity.NETWORK_NOT_CONNECTED, carrierName: String? = null, carrierId: Long? = null, upKbps: Long? = null, downKbps: Long? = null, strength: Long? = null, cellularTechnology: String? = null)

Properties

carrierId

val carrierId: Long? = null

carrierName

val carrierName: String? = null

cellularTechnology

val cellularTechnology: String? = null

connectivity

val connectivity: NetworkInfo.Connectivity

downKbps

val downKbps: Long? = null

strength

val strength: Long? = null

upKbps

val upKbps: Long? = null

Clone this wiki locally