NetworkMonitorAutoDetect

Borrowed from Chromium's src/net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java

Used by the NetworkMonitor to listen to platform changes in connectivity. Note that use of this class requires that the app have the platform ACCESS_NETWORK_STATE permission.

Constructors

Link copied to clipboard
constructor(observer: NetworkChangeDetector.Observer, context: Context)
Constructs a NetworkMonitorAutoDetect.

Functions

Link copied to clipboard
open fun destroy()
Link copied to clipboard
open fun getDefaultNetId(): Long
Returns NetID of device's current default connected network used for communication.
Link copied to clipboard
open fun onReceive(context: Context, intent: Intent)
Link copied to clipboard
open fun setIncludeWifiDirect(enable: Boolean)
Enables WifiDirectManager.
Link copied to clipboard

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSentFromUid(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun peekService(p: Context, p1: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setResult(p: Int, p1: String, p2: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard