Lingua

DiscoverySessionCallback.OnDataPathRequestReceived(PeerHandle) Method

Definition

Callback indicating that a data path request has been received.

[Android.Runtime.Register("onDataPathRequestReceived", "(Landroid/net/wifi/aware/PeerHandle;)V", "GetOnDataPathRequestReceived_Landroid_net_wifi_aware_PeerHandle_Handler", ApiSince=37)]
public virtual void OnDataPathRequestReceived(Android.Net.Wifi.Aware.PeerHandle peerHandle);
[<Android.Runtime.Register("onDataPathRequestReceived", "(Landroid/net/wifi/aware/PeerHandle;)V", "GetOnDataPathRequestReceived_Landroid_net_wifi_aware_PeerHandle_Handler", ApiSince=37)>]
abstract member OnDataPathRequestReceived : Android.Net.Wifi.Aware.PeerHandle -> unit
override this.OnDataPathRequestReceived : Android.Net.Wifi.Aware.PeerHandle -> unit

Parameters

peerHandle
PeerHandle

The peer's handle for the data path request.

Attributes

Remarks

Callback indicating that a data path request has been received. Caller should call PublishDiscoverySession.acceptDataPathRequest(PeerHandle,AwareDataPathRequest) to set up the data path. Or call PublishDiscoverySession.rejectDataPathRequest(PeerHandle) to reject the request.

Android reference for android.net.wifi.aware.DiscoverySessionCallback.onDataPathRequestReceived.

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