次の方法で共有


DiscoverySession.RejectPairingRequest(Int32, PeerHandle) Method

Definition

Reject a Wi-Fi Aware Pairing setup request received from peer.

[Android.Runtime.Register("rejectPairingRequest", "(ILandroid/net/wifi/aware/PeerHandle;)V", "GetRejectPairingRequest_ILandroid_net_wifi_aware_PeerHandle_Handler", ApiSince=34)]
public virtual void RejectPairingRequest (int requestId, Android.Net.Wifi.Aware.PeerHandle peerHandle);
[<Android.Runtime.Register("rejectPairingRequest", "(ILandroid/net/wifi/aware/PeerHandle;)V", "GetRejectPairingRequest_ILandroid_net_wifi_aware_PeerHandle_Handler", ApiSince=34)>]
abstract member RejectPairingRequest : int * Android.Net.Wifi.Aware.PeerHandle -> unit
override this.RejectPairingRequest : int * Android.Net.Wifi.Aware.PeerHandle -> unit

Parameters

requestId
Int32

Id to identify the received pairing session, get by DiscoverySessionCallback#onPairingSetupRequestReceived(PeerHandle, int)

peerHandle
PeerHandle

The peer's handle for the pairing request. Must be a result of a DiscoverySessionCallback#onServiceDiscovered(ServiceDiscoveryInfo) or DiscoverySessionCallback#onMessageReceived(PeerHandle, byte[]) events.

Attributes

Remarks

Reject a Wi-Fi Aware Pairing setup request received from peer. This is the response to the DiscoverySessionCallback#onPairingSetupRequestReceived(PeerHandle, int)

Java documentation for android.net.wifi.aware.DiscoverySession.rejectPairingRequest(int, android.net.wifi.aware.PeerHandle).

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