语言

NetworkCapabilities.NetCapabilityNotBandwidthConstrained 字段

定义

注意

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此开始,此功能默认 NetworkRequest设置为 s,对于大多数网络,此功能为 true。

如果网络缺少此功能,则带宽受限。 带宽受限网络不能支持高带宽数据传输和应用程序请求和使用它们,必须确保将带宽使用量限制为低于返回 #getLinkDownstreamBandwidthKbps() 的值,并 #getLinkUpstreamBandwidthKbps() 限制其网络使用的频率。 如果应用程序在受约束的网络上执行高带宽数据传输或执行网络访问太频繁,则系统可能会阻止应用访问网络。 系统可能会采取其他措施来减少受约束网络上的网络使用情况,例如禁用对不在前台的应用的网络访问。

Java文档android.net.NetworkCapabilities.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于