WifiManager.ILocalOnlyConnectionFailureListener.OnConnectionFailed 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 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.
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.