Share via


NetworkCapabilities.NetCapabilityNotBandwidthConstrained Field

Definition

Caution

This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.

Indicates that this is not a bandwidth-constrained network.

[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

Field Value

Value = 37

Implements

Attributes

Remarks

Indicates that this is not a bandwidth-constrained network.

Starting from Build.VERSION_CODES.VANILLA_ICE_CREAM, this capability is by default set in NetworkRequests and true for most networks.

If a network lacks this capability, it is bandwidth-constrained. Bandwidth constrained networks cannot support high-bandwidth data transfers and applications that request and use them must ensure that they limit bandwidth usage to below the values returned by #getLinkDownstreamBandwidthKbps() and #getLinkUpstreamBandwidthKbps() and limit the frequency of their network usage. If applications perform high-bandwidth data transfers on constrained networks or perform network access too frequently, the system may block the app's access to the network. The system may take other measures to reduce network usage on constrained networks, such as disabling network access to apps that are not in the foreground.

Java documentation for android.net.NetworkCapabilities.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED.

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