Compartilhar via


UserData.NetworkCapabilities Property

Definition

A filtered subset of the Network capabilities of the device that contains upstream and downstream speeds, and whether the network is metered.

public Android.Net.NetworkCapabilities? NetworkCapabilities { [Android.Runtime.Register("getNetworkCapabilities", "()Landroid/net/NetworkCapabilities;", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getNetworkCapabilities", "()Landroid/net/NetworkCapabilities;", "", ApiSince=35)>]
member this.NetworkCapabilities : Android.Net.NetworkCapabilities

Property Value

Attributes

Remarks

A filtered subset of the Network capabilities of the device that contains upstream and downstream speeds, and whether the network is metered. This is an instance of NetworkCapabilities that contains the capability android.net.NetworkCapabilities#NET_CAPABILITY_NOT_METERED if the network is not metered, and NetworkCapabilities#getLinkDownstreamBandwidthKbps() and NetworkCapabilities#getLinkUpstreamBandwidthKbps() return the downstream and upstream connection speeds. All other methods of this NetworkCapabilities object return empty or default values.

Java documentation for android.adservices.ondevicepersonalization.UserData.getNetworkCapabilities().

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