ConnectivityDiagnosticsManager.ConnectivityDiagnosticsCallback.OnNetworkConnectivityReported Method
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.
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.
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.