NetworkState
Kotlin
|Java
data class NetworkState
kotlin.Any | |
↳ | androidx.work.impl.constraints.NetworkState |
Stores information about network state.
Summary
Public constructors | |
---|---|
NetworkState(isConnected: Boolean, isValidated: Boolean, isMetered: Boolean, isNotRoaming: Boolean) Stores information about network state. |
Properties | |
---|---|
Boolean |
Determines if the network is connected. |
Boolean |
Determines if the network is metered. |
Boolean |
Determines if the network is not roaming. |
Boolean |
Determines if the network is validated - has a working Internet connection. |
Public constructors
NetworkState
NetworkState(
isConnected: Boolean,
isValidated: Boolean,
isMetered: Boolean,
isNotRoaming: Boolean)
Stores information about network state.
Properties
isValidated
val isValidated: Boolean
Determines if the network is validated - has a working Internet connection.