Language

RestrictBackgroundStatus Enum

Definition

Defines values used by the Android RestrictBackgroundStatus API.

public enum RestrictBackgroundStatus
type RestrictBackgroundStatus = 
Inheritance
RestrictBackgroundStatus

Fields

Name Value Description
Disabled 1

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

Android reference for android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED.

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.

Whitelisted 2

Device is restricting metered network activity while application is running on background, but application is allowed to bypass it.

In this state, application should take action to mitigate metered network access. For example, a music streaming application should switch to a low-bandwidth bitrate.

Android reference for android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_WHITELISTED.

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.

Enabled 3

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.

Android reference 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.

Remarks

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