Package-level declarations

Types

Link copied to clipboard
interface Connectivity

The Connectivity interface provides a way to monitor the network connectivity status.

Link copied to clipboard
open class ConnectivityOptions(val autoStart: Boolean = DEFAULT_AUTO_START)

The ConnectivityOptions class provides configuration options for the Connectivity instance.

Link copied to clipboard

The ConnectivityProvider interface provides a way to monitor the network connectivity status.

Link copied to clipboard

Marks the annotated element as internal to the connectivity module.

Functions

Link copied to clipboard
Link copied to clipboard
fun Connectivity(provider: ConnectivityProvider, options: ConnectivityOptions = ConnectivityOptions(), scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Connectivity

Creates a Connectivity instance.

fun Connectivity(provider: ConnectivityProvider, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), options: ConnectivityOptions.Builder.() -> Unit): Connectivity

Creates a Connectivity instance with a builder for the ConnectivityOptions.

Link copied to clipboard