ConnectivityManager.GetNetworkInfo Method

Definition

Overloads

GetNetworkInfo(ConnectivityType)
Obsolete.

Returns connection status information about a particular network type.

GetNetworkInfo(Network)
Obsolete.

Returns connection status information about a particular Network.

GetNetworkInfo(ConnectivityType)

Caution

deprecated

Returns connection status information about a particular network type.

[Android.Runtime.Register("getNetworkInfo", "(I)Landroid/net/NetworkInfo;", "GetGetNetworkInfo_IHandler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
[System.Obsolete("deprecated")]
public virtual Android.Net.NetworkInfo? GetNetworkInfo (Android.Net.ConnectivityType networkType);
[<Android.Runtime.Register("getNetworkInfo", "(I)Landroid/net/NetworkInfo;", "GetGetNetworkInfo_IHandler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
[<System.Obsolete("deprecated")>]
abstract member GetNetworkInfo : Android.Net.ConnectivityType -> Android.Net.NetworkInfo
override this.GetNetworkInfo : Android.Net.ConnectivityType -> Android.Net.NetworkInfo

Parameters

networkType
ConnectivityType

integer specifying which networkType in which you're interested.

Returns

NetworkInfo
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

GetNetworkInfo(Network)

Caution

deprecated

Returns connection status information about a particular Network.

[Android.Runtime.Register("getNetworkInfo", "(Landroid/net/Network;)Landroid/net/NetworkInfo;", "GetGetNetworkInfo_Landroid_net_Network_Handler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
[System.Obsolete("deprecated")]
public virtual Android.Net.NetworkInfo? GetNetworkInfo (Android.Net.Network? network);
[<Android.Runtime.Register("getNetworkInfo", "(Landroid/net/Network;)Landroid/net/NetworkInfo;", "GetGetNetworkInfo_Landroid_net_Network_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
[<System.Obsolete("deprecated")>]
abstract member GetNetworkInfo : Android.Net.Network -> Android.Net.NetworkInfo
override this.GetNetworkInfo : Android.Net.Network -> Android.Net.NetworkInfo

Parameters

network
Network

Network specifying which network in which you're interested.

Returns

NetworkInfo
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