Status

sealed interface Status

Represents the connectivity status.

Inheritors

Types

Link copied to clipboard
data class Connected(val metered: Boolean) : Connectivity.Status

Represents a connected status.

Link copied to clipboard

Represents a disconnected status.

Properties

Link copied to clipboard

A Boolean indicating whether the device is connected to the network.

Link copied to clipboard

A Boolean indicating whether the device is disconnected from the network.

Link copied to clipboard
open val isMetered: Boolean

A Boolean indicating whether the device is connected to a metered network.