次の方法で共有


NetworkCapabilities Class

Definition

This class represents the capabilities of a 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

Android platform documentation

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
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
NetCapabilityForeground
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
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.

NetCapabilityMcx
NetCapabilityMms
Obsolete.

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

NetCapabilityMmtel
NetCapabilityNotCongested
NetCapabilityNotMetered
Obsolete.

Indicates that this network is unmetered.

NetCapabilityNotRestricted
Obsolete.

Indicates that this network is available for general use.

NetCapabilityNotRoaming
NetCapabilityNotSuspended
NetCapabilityNotVpn
Obsolete.

Indicates that this network is not a VPN.

NetCapabilityPrioritizeBandwidth
NetCapabilityPrioritizeLatency
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
NetCapabilityTrusted
Obsolete.

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

NetCapabilityValidated
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
NetEnterpriseId2
NetEnterpriseId3
NetEnterpriseId4
NetEnterpriseId5
SignalStrengthUnspecified
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
TransportThread
TransportUsb
TransportVpn
Obsolete.

Indicates this network uses a VPN transport.

TransportWifi
Obsolete.

Indicates this network uses a Wi-Fi transport.

TransportWifiAware

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
OwnerUid
PeerReference (Inherited from Object)
SignalStrength
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

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()
GetEnterpriseIds()
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
HasCapability(NetCapability)

Tests for the presence of a capabilitity on this instance.

HasEnterpriseId(Int32)
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)

Applies to