NetworkCapabilities.NetCapabilityNotBandwidthConstrained 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.
表示這不是頻寬受限的網路。
[Android.Runtime.Register("NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.", true)]
public const Android.Net.NetCapability NetCapabilityNotBandwidthConstrained = 37;
[<Android.Runtime.Register("NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.", true)>]
val mutable NetCapabilityNotBandwidthConstrained : Android.Net.NetCapability
欄位值
Value = 37實作
- 屬性
備註
表示這不是頻寬受限的網路。
從 Build.VERSION_CODES.VANILLA_ICE_CREAM開始,這項能力預設設在 NetworkRequests 中,對大多數網路為真。
如果網路缺乏此能力,則表示頻寬受限。 頻寬受限的網路無法支援高頻寬資料傳輸,且請求並使用這些頻寬的應用程式必須確保頻寬使用量低於回 #getLinkDownstreamBandwidthKbps() 傳的數值,並 #getLinkUpstreamBandwidthKbps() 限制網路使用頻率。 若應用程式在受限網路上執行高頻寬資料傳輸,或頻繁進行網路存取,系統可能會阻擋該應用程式對網路的存取。 系統可能會採取其他措施來減少受限網路的使用,例如停用非前台應用程式的網路存取。
Java 文件 android.net.NetworkCapabilities.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。