Språk

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 rejection request was sent to the Wi-Fi Aware service; false if the session has terminated or the Wi-Fi Aware manager is unavailable. A true result does not confirm that the peer's request was rejected.

Attributes

Remarks

Use this method to reject a request received through 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