Class that answers queries about the state of network connectivity.
See Also:
ConnectivityManager Members
Syntax
[Android.Runtime.Register("android/net/ConnectivityManager", DoNotGenerateAcw=true)]
public class
ConnectivityManager :
Java.Lang.ObjectRemarks
Class that answers queries about the state of network connectivity. It also
notifies applications when network connectivity changes. Get an instance
of this class by calling
Android.Content.Context.GetSystemService(string).
The primary responsibilities of this class are to:
- Monitor network connections (Wi-Fi, GPRS, UMTS, etc.)
- Send broadcast intents when network connectivity changes
- Attempt to "fail over" to another network when connectivity to a network
is lost
- Provide an API that allows applications to query the coarse-grained or fine-grained
state of the available networks
- Provide an API that allows applications to request and select networks for their data
traffic
[Android Documentation]
Requirements
Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1