ConnectivityManager.GetNetworkCapabilities(Network) Method

Definition

Get the NetworkCapabilities for the given Network.

[Android.Runtime.Register("getNetworkCapabilities", "(Landroid/net/Network;)Landroid/net/NetworkCapabilities;", "GetGetNetworkCapabilities_Landroid_net_Network_Handler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
public virtual Android.Net.NetworkCapabilities? GetNetworkCapabilities (Android.Net.Network? network);
[<Android.Runtime.Register("getNetworkCapabilities", "(Landroid/net/Network;)Landroid/net/NetworkCapabilities;", "GetGetNetworkCapabilities_Landroid_net_Network_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
abstract member GetNetworkCapabilities : Android.Net.Network -> Android.Net.NetworkCapabilities
override this.GetNetworkCapabilities : Android.Net.Network -> Android.Net.NetworkCapabilities

Parameters

network
Network

The Network object identifying the network in question.

Returns

NetworkCapabilities
Attributes

Remarks

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