Partager via


WifiP2pManager.IExternalApproverRequestListener.OnPinGenerated Method

Definition

Called when a PIN is generated by the WiFi service.

[Android.Runtime.Register("onPinGenerated", "(Landroid/net/MacAddress;Ljava/lang/String;)V", "GetOnPinGenerated_Landroid_net_MacAddress_Ljava_lang_String_Handler:Android.Net.Wifi.P2p.WifiP2pManager/IExternalApproverRequestListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public void OnPinGenerated (Android.Net.MacAddress deviceAddress, string pin);
[<Android.Runtime.Register("onPinGenerated", "(Landroid/net/MacAddress;Ljava/lang/String;)V", "GetOnPinGenerated_Landroid_net_MacAddress_Ljava_lang_String_Handler:Android.Net.Wifi.P2p.WifiP2pManager/IExternalApproverRequestListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member OnPinGenerated : Android.Net.MacAddress * string -> unit

Parameters

deviceAddress
MacAddress

is the peer MAC address used in the registration.

pin
String

is the WPS PIN.

Attributes

Remarks

Called when a PIN is generated by the WiFi service.

The external approver can display the PIN, exchange the PIN via Out-Of-Band way or ask the wifi service to show the PIN as usual using the #setConnectionRequestResult(Channel, MacAddress, int, ActionListener) with #CONNECTION_REQUEST_DEFER_SHOW_PIN_TO_SERVICE.

Java documentation for android.net.wifi.p2p.WifiP2pManager.ExternalApproverRequestListener.onPinGenerated(android.net.MacAddress, java.lang.String).

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