Partager via


NetworkCapabilities.NetCapabilityNotSuspended 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 not currently suspended.

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

Field Value

Value = 21

Implements

Attributes

Remarks

Indicates that this network is not currently suspended.

When a network is suspended, the network's IP addresses and any connections established on the network remain valid, but the network is temporarily unable to transfer data. This can happen, for example, if a cellular network experiences a temporary loss of signal, such as when driving through a tunnel, etc. A network with this capability is not suspended, so is expected to be able to transfer data.

Java documentation for android.net.NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED.

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