Sdílet prostřednictvím


ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback.OnNetworkConnectivityReported Method

Definition

Called when any app reports connectivity to the System.

[Android.Runtime.Register("onNetworkConnectivityReported", "(Landroid/net/Network;Z)V", "GetOnNetworkConnectivityReported_Landroid_net_Network_ZHandler", ApiSince=30)]
public virtual void OnNetworkConnectivityReported (Android.Net.Network network, bool hasConnectivity);
[<Android.Runtime.Register("onNetworkConnectivityReported", "(Landroid/net/Network;Z)V", "GetOnNetworkConnectivityReported_Landroid_net_Network_ZHandler", ApiSince=30)>]
abstract member OnNetworkConnectivityReported : Android.Net.Network * bool -> unit
override this.OnNetworkConnectivityReported : Android.Net.Network * bool -> unit

Parameters

network
Network

The Network for which connectivity has been reported

hasConnectivity
Boolean

The connectivity reported to the System

Attributes

Remarks

Called when any app reports connectivity to the System.

Java documentation for android.net.ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback.onNetworkConnectivityReported(android.net.Network, boolean).

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