Freigeben über


WifiManager.ISuggestionConnectionStatusListener.OnConnectionStatus Method

Definition

Called when the framework attempted to connect to a suggestion provided by the registering app, but the connection to the suggestion failed.

[Android.Runtime.Register("onConnectionStatus", "(Landroid/net/wifi/WifiNetworkSuggestion;I)V", "GetOnConnectionStatus_Landroid_net_wifi_WifiNetworkSuggestion_IHandler:Android.Net.Wifi.WifiManager/ISuggestionConnectionStatusListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnConnectionStatus (Android.Net.Wifi.WifiNetworkSuggestion wifiNetworkSuggestion, int failureReason);
[<Android.Runtime.Register("onConnectionStatus", "(Landroid/net/wifi/WifiNetworkSuggestion;I)V", "GetOnConnectionStatus_Landroid_net_wifi_WifiNetworkSuggestion_IHandler:Android.Net.Wifi.WifiManager/ISuggestionConnectionStatusListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnConnectionStatus : Android.Net.Wifi.WifiNetworkSuggestion * int -> unit

Parameters

wifiNetworkSuggestion
WifiNetworkSuggestion

The suggestion which failed to connect.

failureReason
Int32

the connection failure reason code.

Attributes

Remarks

Called when the framework attempted to connect to a suggestion provided by the registering app, but the connection to the suggestion failed.

Java documentation for android.net.wifi.WifiManager.SuggestionConnectionStatusListener.onConnectionStatus(android.net.wifi.WifiNetworkSuggestion, 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