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
The ConnectivityOptions class provides configuration options for the Connectivity instance.
Link copied to clipboard
interface ConnectivityProvider
The ConnectivityProvider interface provides a way to monitor the network connectivity status.
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.TYPEALIAS] )
Marks the annotated element as internal to the connectivity module.
Functions
Link copied to clipboard
Converts a Flow of Connectivity.Status to a ConnectivityProvider.
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
Creates a ConnectivityProvider instance.