NetworkState

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

isConnected

val isConnected: Boolean

Determines if the network is connected.

isMetered

val isMetered: Boolean

Determines if the network is metered.

isNotRoaming

val isNotRoaming: Boolean

Determines if the network is not roaming.

isValidated

val isValidated: Boolean

Determines if the network is validated - has a working Internet connection.