Connectivity
Creates a Connectivity instance for HTTP.
Return
A Connectivity instance.
Parameters
The HttpConnectivityOptions used to configure the connectivity monitoring. Defaults to a new HttpConnectivityOptions instance.
The CoroutineScope in which the connectivity monitoring will be launched. Defaults to a new CoroutineScope with Dispatchers.Default.
The HttpClient used to make HTTP requests. Defaults to a new HttpClient instance.
Creates a Connectivity instance for HTTP using a builder pattern for the HttpConnectivityOptions.
Return
A Connectivity instance.
Parameters
The CoroutineScope in which the connectivity monitoring will be launched. Defaults to a new CoroutineScope with Dispatchers.Default.
The HttpClient used to make HTTP requests. Defaults to a new HttpClient instance.
A lambda function that configures the HttpConnectivityOptions.Builder.