Package-level declarations

Types

Link copied to clipboard
class InternetDetector(context: Context, serverUrl: String = "https://www.google.com/", timeOut: Int = 10 * 1000)

Functions

Link copied to clipboard
fun Context.internetDetection(serverUrl: String = "https://www.google.com/", timeOut: Int = 10 * 1000): Flow<Boolean>

Sends internet statuses as a simple flow of booleans true if user has an active internet connection false if user hasn't

Link copied to clipboard
fun Context.isURLReachable(serverUrl: String, timeOut: Int = 10 * 1000): Boolean

Must not be called on the main thread