Android.Net.Wifi.P2p.WifiP2pManager.AddLocalService Method
Register a local service for service discovery.

Syntax

[Android.Runtime.Register("addLocalService", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pServiceInfo;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", "GetAddLocalService_Landroid_net_wifi_p2p_WifiP2pManager_Channel_Landroid_net_wifi_p2p_nsd_WifiP2pServiceInfo_Landroid_net_wifi_p2p_WifiP2pManager_ActionListener_Handler")]
public virtual void AddLocalService (WifiP2pManager.Channel c, Android.Net.Wifi.P2p.Nsd.WifiP2pServiceInfo servInfo, WifiP2pManager.IActionListener listener)

Parameters

c
is the channel created at WifiP2pManager.Initialize(Android.Content.Context, Android.OS.Looper, Android.OS.Looper)
servInfo
is a local service information.
listener
for callbacks on success or failure. Can be null.

Remarks

Requirements

Namespace: Android.Net.Wifi.P2p
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16