Connectivity
Creates a Connectivity instance for Android platforms.
This function is platform-specific and its implementation is provided by Android platform.
Return
A Connectivity instance.
Parameters
The ConnectivityOptions used to configure the connectivity monitoring.
The CoroutineScope in which the connectivity monitoring will be launched.
Creates a Connectivity instance for iOS platforms.
This function is platform-specific and its implementation is provided by iOS platform.
Return
A Connectivity instance.
Parameters
The ConnectivityOptions used to configure the connectivity monitoring.
The CoroutineScope in which the connectivity monitoring will be launched.
Creates a Connectivity instance for device platforms using a builder pattern for the ConnectivityOptions.
Return
A Connectivity instance.
Parameters
The CoroutineScope in which the connectivity monitoring will be launched. Defaults to a new CoroutineScope with Dispatchers.Default.
A lambda function that configures the ConnectivityOptions.Builder.
Creates a Connectivity instance for device platforms.
Return
A Connectivity instance.
Parameters
The ConnectivityOptions used to configure the connectivity monitoring. Defaults to a new ConnectivityOptions instance.
The CoroutineScope in which the connectivity monitoring will be launched. Defaults to a new CoroutineScope with Dispatchers.Default.