共用方式為


ConnectivityManager.ReportNetworkConnectivity(Network, Boolean) Method

Definition

[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
hasConnectivity
Boolean
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