다음을 통해 공유


WifiManager.ILocalOnlyConnectionFailureListener.OnConnectionFailed Method

Definition

Called when the framework attempted to connect to a local-only network requested by the registering app, but the connection to the network failed.

[Android.Runtime.Register("onConnectionFailed", "(Landroid/net/wifi/WifiNetworkSpecifier;I)V", "GetOnConnectionFailed_Landroid_net_wifi_WifiNetworkSpecifier_IHandler:Android.Net.Wifi.WifiManager/ILocalOnlyConnectionFailureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnConnectionFailed (Android.Net.Wifi.WifiNetworkSpecifier wifiNetworkSpecifier, Android.Net.Wifi.StatusLocalOnlyConnectionFailureReason failureReason);
[<Android.Runtime.Register("onConnectionFailed", "(Landroid/net/wifi/WifiNetworkSpecifier;I)V", "GetOnConnectionFailed_Landroid_net_wifi_WifiNetworkSpecifier_IHandler:Android.Net.Wifi.WifiManager/ILocalOnlyConnectionFailureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnConnectionFailed : Android.Net.Wifi.WifiNetworkSpecifier * Android.Net.Wifi.StatusLocalOnlyConnectionFailureReason -> unit

Parameters

wifiNetworkSpecifier
WifiNetworkSpecifier

The WifiNetworkSpecifier which failed to connect.

failureReason
StatusLocalOnlyConnectionFailureReason

the connection failure reason code.

Attributes

Remarks

Called when the framework attempted to connect to a local-only network requested by the registering app, but the connection to the network failed.

Java documentation for android.net.wifi.WifiManager.LocalOnlyConnectionFailureListener.onConnectionFailed(android.net.wifi.WifiNetworkSpecifier, int).

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