语言

ConnectivityManager.RestrictBackgroundStatus 属性

定义

确定调用应用程序在后台运行时是否受到按流量计费的网络限制。

public virtual Android.Net.RestrictBackgroundStatus RestrictBackgroundStatus { [Android.Runtime.Register("getRestrictBackgroundStatus", "()I", "GetGetRestrictBackgroundStatusHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getRestrictBackgroundStatus", "()I", "GetGetRestrictBackgroundStatusHandler", ApiSince=24)>]
member this.RestrictBackgroundStatus : Android.Net.RestrictBackgroundStatus

属性值

#RESTRICT_BACKGROUND_STATUS_DISABLED、#RESTRICT_BACKGROUND_STATUS_ENABLED 或 #RESTRICT_BACKGROUND_STATUS_WHITELISTED

特性

注解

确定调用应用程序在后台运行时是否受到按流量计费的网络限制。

Java文档android.net.ConnectivityManager.getRestrictBackgroundStatus()。

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

适用于