Share via


NetworkCapabilities Class

Definition

Representation of the capabilities of an active network.

[Android.Runtime.Register("android/net/NetworkCapabilities", DoNotGenerateAcw=true)]
public sealed class NetworkCapabilities : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/net/NetworkCapabilities", DoNotGenerateAcw=true)>]
type NetworkCapabilities = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
NetworkCapabilities
Attributes
Implements

Remarks

Representation of the capabilities of an active network.

Java documentation for android.net.NetworkCapabilities.

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

NetworkCapabilities()
NetworkCapabilities(NetworkCapabilities)

Fields

NetCapabilityCaptivePortal
Obsolete.

Indicates that this network was found to have a captive portal in place last time it was probed.

NetCapabilityCbs
Obsolete.

Indicates this is a network that has the ability to reach the carrier's CBS servers, used for carrier specific services.

NetCapabilityDun
Obsolete.

Indicates this is a network that has the ability to reach the carrier's DUN or tethering gateway.

NetCapabilityEims
Obsolete.

Indicates this is a network that has the ability to reach a carrier's Emergency IMS servers or other services, used for network signaling during emergency calls.

NetCapabilityEnterprise
Obsolete.

Indicates that this network is intended for enterprise use.

NetCapabilityForeground
Obsolete.

Indicates that this network is available for use by apps, and not a network that is being kept up in the background to facilitate fast network switching.

NetCapabilityFota
Obsolete.

Indicates this is a network that has the ability to reach the carrier's FOTA portal, used for over the air updates.

NetCapabilityHeadUnit
Obsolete.

Indicates that this network is connected to an automotive head unit.

NetCapabilityIa
Obsolete.

Indicates this is a network that has the ability to reach a carrier's Initial Attach servers.

NetCapabilityIms
Obsolete.

Indicates this is a network that has the ability to reach the carrier's IMS servers, used for network registration and signaling.

NetCapabilityInternet
Obsolete.

Indicates that this network should be able to reach the internet.

NetCapabilityLocalNetwork
Obsolete.

Indicates that this network is a local network.

NetCapabilityMcx
Obsolete.

Indicates this is a network that has the ability to reach a carrier's Mission Critical servers.

NetCapabilityMms
Obsolete.

Indicates this is a network that has the ability to reach the carrier's MMSC for sending and receiving MMS messages.

NetCapabilityMmtel
Obsolete.

Indicates that this network has ability to support MMTEL (Multimedia Telephony service).

NetCapabilityNotCongested
Obsolete.

Indicates that this network is not congested.

NetCapabilityNotMetered
Obsolete.

Indicates that this network is unmetered.

NetCapabilityNotRestricted
Obsolete.

Indicates that this network is available for general use.

NetCapabilityNotRoaming
Obsolete.

Indicates that this network is not roaming.

NetCapabilityNotSuspended
Obsolete.

Indicates that this network is not currently suspended.

NetCapabilityNotVpn
Obsolete.

Indicates that this network is not a VPN.

NetCapabilityPrioritizeBandwidth
Obsolete.

Indicates that this network should be able to prioritize bandwidth for the internet.

NetCapabilityPrioritizeLatency
Obsolete.

Indicates that this network should be able to prioritize latency for the internet.

NetCapabilityRcs
Obsolete.

Indicates this is a network that has the ability to reach a carrier's RCS servers, used for Rich Communication Services.

NetCapabilitySupl
Obsolete.

Indicates this is a network that has the ability to reach the carrier's SUPL server, used to retrieve GPS information.

NetCapabilityTemporarilyNotMetered
Obsolete.

Indicates that this network is temporarily unmetered.

NetCapabilityTrusted
Obsolete.

Indicates that the user has indicated implicit trust of this network.

NetCapabilityValidated
Obsolete.

Indicates that connectivity on this network was successfully validated.

NetCapabilityWifiP2p
Obsolete.

Indicates this is a network that has the ability to reach a Wi-Fi direct peer.

NetCapabilityXcap
Obsolete.

Indicates this is a network that has the ability to reach a carrier's XCAP servers, used for configuration and control.

NetEnterpriseId1
Obsolete.

Enterprise capability identifier 1.

NetEnterpriseId2
Obsolete.

Enterprise capability identifier 2.

NetEnterpriseId3
Obsolete.

Enterprise capability identifier 3.

NetEnterpriseId4
Obsolete.

Enterprise capability identifier 4.

NetEnterpriseId5
Obsolete.

Enterprise capability identifier 5.

SignalStrengthUnspecified

Magic value that indicates no signal strength provided.

TransportBluetooth
Obsolete.

Indicates this network uses a Bluetooth transport.

TransportCellular
Obsolete.

Indicates this network uses a Cellular transport.

TransportEthernet
Obsolete.

Indicates this network uses an Ethernet transport.

TransportLowpan
Obsolete.

Indicates this network uses a LoWPAN transport.

TransportSatellite
Obsolete.

Indicates this network uses a Satellite transport.

TransportThread
Obsolete.

Indicates this network uses a Thread transport.

TransportUsb
Obsolete.

Indicates this network uses a USB transport.

TransportVpn
Obsolete.

Indicates this network uses a VPN transport.

TransportWifi
Obsolete.

Indicates this network uses a Wi-Fi transport.

TransportWifiAware
Obsolete.

Indicates this network uses a Wi-Fi Aware transport.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LinkDownstreamBandwidthKbps

Retrieves the downstream bandwidth for this network in Kbps.

LinkUpstreamBandwidthKbps

Retrieves the upstream bandwidth for this network in Kbps.

NetworkSpecifier

Gets the optional bearer specific network specifier.

OwnerUid

Retrieves the UID of the app that owns this network.

PeerReference (Inherited from Object)
SignalStrength

Retrieves the signal strength.

SubscriptionIds

Gets the subscription ID set that associated to this network or request.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
TransportInfo

Returns a transport-specific information container.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetCapabilities()

Gets all the capabilities set on this NetworkCapability instance.

GetEnterpriseIds()

Get enteprise identifiers set.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
HasCapability(NetCapability)

Tests for the presence of a capability on this instance.

HasEnterpriseId(Int32)

Tests for the presence of an enterprise capability identifier on this instance.

HasTransport(TransportType)

Tests for the presence of a transport on this instance.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

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)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to