ConnectivityManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stub ConnectivityManager for layoutlib
[Android.Runtime.Register("android/net/ConnectivityManager", DoNotGenerateAcw=true)]
public class ConnectivityManager : Java.Lang.Object
[<Android.Runtime.Register("android/net/ConnectivityManager", DoNotGenerateAcw=true)>]
type ConnectivityManager = class
inherit Object
- Inheritance
- Attributes
Remarks
Java documentation for android.net.ConnectivityManager
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
ConnectivityManager(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
ActionBackgroundDataSettingChanged |
Obsolete.
Broadcast Action: The setting for background data usage has changed values. |
ActionCaptivePortalSignIn | |
ActionRestrictBackgroundChanged | |
ConnectivityAction |
A change in network connectivity has occurred. |
DefaultNetworkPreference |
Obsolete.
If you want to set the default network preference,you can directly change the networkAttributes array in framework's config.xml. |
ExtraCaptivePortal | |
ExtraCaptivePortalUrl | |
ExtraExtraInfo |
The lookup key for a string that provides optionally supplied extra information about the network state. |
ExtraIsFailover |
The lookup key for a boolean that indicates whether a connect event is for a network to which the connectivity manager was failing over following a disconnect on another network. |
ExtraNetwork | |
ExtraNetworkInfo |
Obsolete.
The lookup key for a NetworkInfo object. |
ExtraNetworkRequest | |
ExtraNetworkType |
Network type which triggered a ConnectivityAction broadcast. |
ExtraNoConnectivity |
The lookup key for a boolean that indicates whether there is a complete lack of connectivity, i.e., no network is available. |
ExtraOtherNetworkInfo |
The lookup key for a NetworkInfo object. |
ExtraReason |
The lookup key for a string that indicates why an attempt to connect to a network failed. |
RestrictBackgroundStatusDisabled | |
RestrictBackgroundStatusEnabled | |
RestrictBackgroundStatusWhitelisted |
Properties
ActiveNetwork | |
ActiveNetworkInfo |
Returns details about the currently active default data network. |
BackgroundDataSetting |
Obsolete.
Returns the value of the setting for background data usage. |
BoundNetworkForProcess | |
Class |
Returns the runtime class of this |
DefaultProxy | |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
IsActiveNetworkMetered |
Returns if the currently active data network is metered. |
IsDefaultNetworkActive |
Return whether the data network is currently active. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
NetworkPreference |
Obsolete.
Retrieves the current preferred network type. |
PeerReference | (Inherited from Object) |
ProcessDefaultNetwork |
Returns the Network currently bound to this process via
BindProcessToNetwork(Network), or |
RestrictBackgroundStatus | |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
Events
DefaultNetworkActive |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |