ConnectivityChecker

Cheap online check for the offline-first sync (gate a refresh() before hitting the network). An interface, not expect/actual, because only the Android/iOS/jvm impls need a platform dependency (ConnectivityManager / Konnection); wasmJs uses the naive default. Koin binds the right one.

Inheritors

Functions

Link copied to clipboard
abstract fun isOnline(): Boolean
Link copied to clipboard
open fun observeIsOnline(): Flow<Boolean>

Live connectivity observer. Default is a single-shot Flow of the current isOnline value (no push updates) — override for a real observer. KonnectionConnectivityChecker does.