NetworkManager

interface NetworkManager

Manages monitoring for NetworkConnectionType

Inheritors

Types

Link copied to clipboard
interface Builder

Builder for creating a NetworkManager

Properties

Link copied to clipboard
abstract val network: Flow<NetworkConnectionType>

A Flow of the NetworkConnectionType detected by the network manager

Functions

Link copied to clipboard
abstract suspend fun startMonitoring()

Starts monitoring for changes to NetworkConnectionType that will be emitted on the network flow

Link copied to clipboard
abstract suspend fun stopMonitoring()

Stops monitoring for changes to NetworkConnectionType