UserData.NetworkCapabilities Property
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.
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.