Language

NetCapability Enum

Definition

Defines values used by the Android NetCapability API.

public enum NetCapability
type NetCapability = 
Inheritance
NetCapability

Fields

Name Value Description
Mms 0
Supl 1
Dun 2
Fota 3
Ims 4
Cbs 5
WifiP2p 6
Ia 7
Rcs 8
Xcap 9
Eims 10
NotMetered 11
Internet 12
NotRestricted 13
Trusted 14
NotVpn 15
Validated 16
CaptivePortal 17
NotRoaming 18
Foreground 19
NotCongested 20
NotSuspended 21
Mcx 23
TemporarilyNotMetered 25
Enterprise 29
HeadUnit 32
Mmtel 33
PrioritizeLatency 34
PrioritizeBandwidth 35
LocalNetwork 36
NotBandwidthConstrained 37
PrioritizeUnifiedCommunications 38

Indicates that this network is optimized for real-time unified communications, such as Over-the-Top (OTT) voice and video calls.

This capability is intended specifically for applications that handle Over-the-Top (OTT) voice and video calls. It is not intended for non ott applications.

This capability signals to the system that the network may offer a dedicated slice for high-priority, low-latency data paths. It can be used in two ways: The system can request a network with this capability on behalf of an eligible application when it detects an active OTT call to improve Quality of Service (QoS); An ott application can request a network with this capability directly using ConnectivityManager.requestNetwork(NetworkRequest, PendingIntent).

This capability is a hint from the network and does not guarantee that it will be used for any given call. Apps targeting Build.VERSION_CODES.UPSIDE_DOWN_CAKE or higher, requesting this capability with ConnectivityManager.requestNetwork requires declaration in the self-certified network capabilities. See NetworkRequest for the self-certification documentation.

Android reference for android.net.NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_UNIFIED_COMMUNICATIONS.

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.

Remarks

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.

Applies to