다음을 통해 공유


NetworkCapabilities.NetCapabilityTemporarilyNotMetered 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 network is temporarily unmetered.

[Android.Runtime.Register("NET_CAPABILITY_TEMPORARILY_NOT_METERED", ApiSince=30)]
[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 NetCapabilityTemporarilyNotMetered = 25;
[<Android.Runtime.Register("NET_CAPABILITY_TEMPORARILY_NOT_METERED", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.", true)>]
val mutable NetCapabilityTemporarilyNotMetered : Android.Net.NetCapability

Field Value

Value = 25

Implements

Attributes

Remarks

Indicates that this network is temporarily unmetered.

This capability will be set for networks that are generally metered, but are currently unmetered, e.g., because the user is in a particular area. This capability can be changed at any time. When it is removed, applications are responsible for stopping any data transfer that should not occur on a metered network. Note that most apps should use #NET_CAPABILITY_NOT_METERED instead. For more information, see https://developer.android.com/about/versions/11/features/5g#meteredness.

Java documentation for android.net.NetworkCapabilities.NET_CAPABILITY_TEMPORARILY_NOT_METERED.

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