Partager via


NetworkStats.Bucket.Metered Property

Definition

Metered state.

public virtual Android.App.Usage.MeteredStates Metered { [Android.Runtime.Register("getMetered", "()I", "GetGetMeteredHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getMetered", "()I", "GetGetMeteredHandler", ApiSince=26)>]
member this.Metered : Android.App.Usage.MeteredStates

Property Value

Attributes

Remarks

Metered state. One of the following values:

<ul> <li>#METERED_ALL</li> <li>#METERED_NO</li> <li>#METERED_YES</li> </ul>

A network is classified as metered when the user is sensitive to heavy data usage on that connection. Apps may warn before using these networks for large downloads. The metered state can be set by the user within data usage network restrictions.

Java documentation for android.app.usage.NetworkStats.Bucket.getMetered().

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