AndroidConnectivity

fun AndroidConnectivity(options: ConnectivityOptions = ConnectivityOptions(), scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Connectivity

Creates a Connectivity instance for Android.

Return

A Connectivity instance.

Parameters

options

The ConnectivityOptions used to configure the connectivity monitoring. Defaults to a new ConnectivityOptions instance.

scope

The CoroutineScope in which the connectivity monitoring will be launched. Defaults to a new CoroutineScope with Dispatchers.Default.