ConnectivityManager.RestrictBackgroundStatusEnabled Field

Definition

Caution

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

Device is restricting metered network activity while application is running on background.

[Android.Runtime.Register("RESTRICT_BACKGROUND_STATUS_ENABLED", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.RestrictBackgroundStatus enum directly instead of this field.", true)]
public const Android.Net.RestrictBackgroundStatus RestrictBackgroundStatusEnabled = 3;
[<Android.Runtime.Register("RESTRICT_BACKGROUND_STATUS_ENABLED", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.RestrictBackgroundStatus enum directly instead of this field.", true)>]
val mutable RestrictBackgroundStatusEnabled : Android.Net.RestrictBackgroundStatus

Field Value

Value = 3
Attributes

Remarks

Device is restricting metered network activity while application is running on background.

In this state, application should not try to use the network while running on background, because it would be denied.

Java documentation for android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED.

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