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(myContext: Context, service: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
fun setOrderedHint(isOrdered: Boolean)
Link copied to clipboard
fun setResult(code: Int, data: String, extras: Bundle)
Link copied to clipboard
fun setResultCode(code: Int)
Link copied to clipboard
Link copied to clipboard
fun setResultExtras(extras: Bundle)