ConnectivityConfig

Immutable monitor configuration. Every default reproduces the reference behaviour.

Build it with ConnectivityConfig { ... } (or pass the same block to a ConnectivityMonitor factory). Invalid values fail fast with an IllegalArgumentException when the config is built. To change the configuration later, close() the monitor and create a new one.

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: CoroutineScope?

Parent scope for the monitor; null = its own SupervisorJob on Dispatchers.Default.

Link copied to clipboard

How long monitoring keeps running after the last collector leaves. Duration.INFINITE = never stop.

Link copied to clipboard
Link copied to clipboard