WifiP2pManager.RemoveServiceRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Remove a specified service discovery request added with AddServiceRequest(WifiP2pManager+Channel, WifiP2pServiceRequest, WifiP2pManager+IActionListener).
[Android.Runtime.Register("removeServiceRequest", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pServiceRequest;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", "GetRemoveServiceRequest_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_nsd_WifiP2pServiceRequest_Landroid_net_wifi_p2p_WifiP2pManager_ActionListener_Handler")]
public virtual void RemoveServiceRequest(Android.Net.Wifi.P2p.WifiP2pManager.Channel? channel, Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest? req, Android.Net.Wifi.P2p.WifiP2pManager.IActionListener? listener);
[<Android.Runtime.Register("removeServiceRequest", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pServiceRequest;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", "GetRemoveServiceRequest_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_nsd_WifiP2pServiceRequest_Landroid_net_wifi_p2p_WifiP2pManager_ActionListener_Handler")>]
abstract member RemoveServiceRequest : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest * Android.Net.Wifi.P2p.WifiP2pManager.IActionListener -> unit
override this.RemoveServiceRequest : Android.Net.Wifi.P2p.WifiP2pManager.Channel * Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest * Android.Net.Wifi.P2p.WifiP2pManager.IActionListener -> unit
Parameters
- channel
- WifiP2pManager.Channel
The channel created by Initialize(Context, Looper, WifiP2pManager+IChannelListener).
is the service discovery request.
- listener
- WifiP2pManager.IActionListener
for callbacks on success or failure. Can be null.
- Attributes
Remarks
Remove a specified service discovery request added with AddServiceRequest(WifiP2pManager+Channel, WifiP2pServiceRequest, WifiP2pManager+IActionListener)
The function call immediately returns after sending a request to remove a service discovery request to the framework. The application is notified of success or failure to remove the service discovery request through listener callbacks OnSuccess() or OnFailure(WifiP2pFailureReason).
Android reference for android.net.wifi.p2p.WifiP2pManager.removeServiceRequest.
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.