ConnectivityManager.ReportNetworkConnectivity(Network, Boolean) 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.
Report to the framework whether a network has working connectivity.
[Android.Runtime.Register("reportNetworkConnectivity", "(Landroid/net/Network;Z)V", "GetReportNetworkConnectivity_Landroid_net_Network_ZHandler", ApiSince=23)]
public virtual void ReportNetworkConnectivity(Android.Net.Network? network, bool hasConnectivity);
[<Android.Runtime.Register("reportNetworkConnectivity", "(Landroid/net/Network;Z)V", "GetReportNetworkConnectivity_Landroid_net_Network_ZHandler", ApiSince=23)>]
abstract member ReportNetworkConnectivity : Android.Net.Network * bool -> unit
override this.ReportNetworkConnectivity : Android.Net.Network * bool -> unit
Parameters
- network
- Network
The Network the application was attempting to use
or null to indicate the current default network.
- hasConnectivity
- Boolean
true if the application was able to successfully access the
Internet using network or false if not.
- Attributes
Remarks
Report to the framework whether a network has working connectivity. This provides a hint to the system that a particular network is providing working connectivity or not. In response the framework may re-evaluate the network's connectivity and might take further action thereafter.
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.