RestrictBackgroundStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 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 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.