Connectivity
fun Connectivity(options: <Error class: unknown class> = ConnectivityOptions(), scope: <Error class: unknown class> = CoroutineScope(Dispatchers.Default)): <Error class: unknown class>
Creates a Connectivity instance for Apple platforms.
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.
fun Connectivity(scope: <Error class: unknown class> = CoroutineScope(Dispatchers.Default), options: <Error class: unknown class>.() -> Unit): <Error class: unknown class>
Creates a Connectivity instance for Apple platforms using a builder pattern for the ConnectivityOptions.
Return
A Connectivity instance.
Parameters
scope
The CoroutineScope in which the connectivity monitoring will be launched. Defaults to a new CoroutineScope with Dispatchers.Default.
options
A lambda function that configures the ConnectivityOptions.Builder.