# NetworkConnectivity

`import { NetworkConnectivity } from "destack:net/binding";`

Network connectivity snapshot.

```ds title="NetworkConnectivity"
export struct NetworkConnectivity {
    kind: NetworkConnectivityKind;
    connected: boolean;
    internetReachable: boolean;
    expensive: boolean;
    constrained: boolean;
    roaming: boolean;
    cellularGeneration: NetworkCellularGeneration;
    downlinkMbps: float64;
    uplinkMbps: float64;
}
```

[language/library/src/net/binding/connectivity.ds:42:61](https://github.com/destack-sh/destack/blob/main/language/library/src/net/binding/connectivity.ds#L42-L61)

## Members

### `kind: NetworkConnectivityKind`

Route connection class.

### `connected: boolean`

Whether one route to a local network is available.

### `internetReachable: boolean`

Whether one route to the public internet is available.

### `expensive: boolean`

Whether the route is metered or expensive when the host can determine it.

### `constrained: boolean`

Whether the route is constrained by low-data mode when the host can determine it.

### `roaming: boolean`

Whether the active route is roaming when the host can determine it.

### `cellularGeneration: NetworkCellularGeneration`

Cellular generation when `kind` is `Cellular` and the host can determine it.

### `downlinkMbps: float64`

Estimated downstream bandwidth in megabits per second when the host can determine it.

### `uplinkMbps: float64`

Estimated upstream bandwidth in megabits per second when the host can determine it.
