ConnectivityMonitor

class ConnectivityMonitor(val httpClient: HttpClient = createConfiguredHttpClient(), val shouldSkipConnectionCheck: () -> Boolean = { false })(source)

Coordinates ConnectivityMonitor behavior in the SDAI network layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient = createConfiguredHttpClient(), shouldSkipConnectionCheck: () -> Boolean = { false })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
private val httpClient: HttpClient

Exposes the httpClient value used by the SDAI network layer.

Link copied to clipboard

Exposes the shouldSkipConnectionCheck value used by the SDAI network layer.

Functions

Link copied to clipboard
private suspend fun checkConnection(serverUrl: String): Boolean
Link copied to clipboard
fun observe(serverUrl: String): Flow<Boolean>