Language

PublishDiscoverySession.RejectDataPathRequest(PeerHandle) Method

Definition

Reject a Wi-Fi Aware data path request received from peer.

[Android.Runtime.Register("rejectDataPathRequest", "(Landroid/net/wifi/aware/PeerHandle;)Z", "GetRejectDataPathRequest_Landroid_net_wifi_aware_PeerHandle_Handler", ApiSince=37)]
public virtual bool RejectDataPathRequest(Android.Net.Wifi.Aware.PeerHandle peerHandle);
[<Android.Runtime.Register("rejectDataPathRequest", "(Landroid/net/wifi/aware/PeerHandle;)Z", "GetRejectDataPathRequest_Landroid_net_wifi_aware_PeerHandle_Handler", ApiSince=37)>]
abstract member RejectDataPathRequest : Android.Net.Wifi.Aware.PeerHandle -> bool
override this.RejectDataPathRequest : Android.Net.Wifi.Aware.PeerHandle -> bool

Parameters

peerHandle
PeerHandle

The peer's handle for the data path request.

Returns

true if the data path is rejected successfully, false otherwise.

Attributes

Remarks

Reject a Wi-Fi Aware data path request received from peer. This is the response to the DiscoverySessionCallback.onDataPathRequestReceived(PeerHandle)

Android reference for android.net.wifi.aware.PublishDiscoverySession.rejectDataPathRequest.

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