語言

NetCapability 列舉

定義

定義 Android NetCapability API 所使用的數值。

public enum NetCapability
type NetCapability = 
繼承
NetCapability

欄位

名稱 值 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

表示此網路已優化用於即時統一通訊,如 Over-the-Top(OTT)語音與視訊通話。

此功能專為處理 Over-the-Top(OTT)語音與視訊通話的應用設計。 它不適用於非 OTT 應用。

此能力向系統表明,網路可能提供專用片以處理高優先權、低延遲的資料路徑。 它可以有兩種使用方式:當系統偵測到有效的 OTT 通話以提升服務品質(QoS)時,可以代表符合資格的應用程式請求具備此能力的網路;OTT 應用程式可直接使用 ConnectivityManager.requestNetwork(NetworkRequest, PendingIntent) 請求具備此功能的網路。

此功能是網路的提示,並不保證該功能會被用於任何通話。 針對Build.VERSION_CODES的應用程式。UPSIDE_DOWN_CAKE以上,使用 ConnectivityManager.requestNetwork 申請此功能需在自我認證的網路能力中宣告。 請參閱 NetworkRequest 以獲取自我認證文件。

Android 參考資料。android.net.NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_UNIFIED_COMMUNICATIONS

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於