ConnectionStateMonitor

inner class ConnectionStateMonitor : ConnectivityManager.NetworkCallback

Functions

disable
Link copied to clipboard
fun disable(context: Context)
enable
Link copied to clipboard
fun enable(context: Context)
onAvailable
Link copied to clipboard
open override fun onAvailable(network: Network)
onBlockedStatusChanged
Link copied to clipboard
open fun onBlockedStatusChanged(p0: Network, p1: Boolean)
onCapabilitiesChanged
Link copied to clipboard
open override fun onCapabilitiesChanged(network: Network, networkCapabilities: NetworkCapabilities)
onLinkPropertiesChanged
Link copied to clipboard
open override fun onLinkPropertiesChanged(network: Network, linkProperties: LinkProperties)
onLosing
Link copied to clipboard
open override fun onLosing(network: Network, maxMsToLive: Int)
onLost
Link copied to clipboard
open override fun onLost(network: Network)
onUnavailable
Link copied to clipboard
open override fun onUnavailable()