语言

ConnectivityManager.RestrictBackgroundStatusEnabled 字段

定义

注意

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

当应用程序在后台运行时,设备正在限制按流量计费的网络活动。

[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

字段值

Value = 3
特性

注解

在此状态下,应用程序不应尝试在后台运行时使用网络,因为它会被拒绝。

Java文档android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于