NetworkMonitor

interface NetworkMonitor : Closeable

Monitors the network state. A NetworkMonitor is used to retry requests when network is available.

Properties

Link copied to clipboard
abstract val isOnline: StateFlow<Boolean?>

Emits the current network state. May emit null during initialization when the current state is not known yet.

Functions

Link copied to clipboard
expect abstract fun close()