Partager via


ConnectivityManager.GetAllNetworkInfo Method

Definition

Returns connection status information about all network types supported by the device.

[Android.Runtime.Register("getAllNetworkInfo", "()[Landroid/net/NetworkInfo;", "GetGetAllNetworkInfoHandler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
public virtual Android.Net.NetworkInfo[] GetAllNetworkInfo ();
[<Android.Runtime.Register("getAllNetworkInfo", "()[Landroid/net/NetworkInfo;", "GetGetAllNetworkInfoHandler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
abstract member GetAllNetworkInfo : unit -> Android.Net.NetworkInfo[]
override this.GetAllNetworkInfo : unit -> Android.Net.NetworkInfo[]

Returns

an array of NetworkInfo objects. Check each NetworkInfo#getType for which type each applies.

Attributes

Remarks

Returns connection status information about all network types supported by the device.

This member is deprecated. This method does not support multiple connected networks of the same type. Use #getAllNetworks and #getNetworkInfo(android.net.Network) instead.

Java documentation for android.net.ConnectivityManager.getAllNetworkInfo().

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