Companion
object Companion
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private var onNetworkCapabilitiesChanged: (network: Network, networkCapabilities: NetworkCapabilities) -> Unit?
Link copied to clipboard
Functions
Link copied to clipboard
fun observe(context: Context, capabilities: List<Int> = listOf(NetworkCapabilities.NET_CAPABILITY_INTERNET), transportTypes: List<Int> = listOf(
NetworkCapabilities.TRANSPORT_WIFI,
NetworkCapabilities.TRANSPORT_CELLULAR
))
If your app have multiple process , make sure to call this one only on the main one only (UI)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onNetworkCapabilitiesChanged(callback: (network: Network, networkCapabilities: NetworkCapabilities) -> Unit): AppEventsObserver.Companion
Link copied to clipboard