/Generated/v4.1/Android.Net.Wifi.P2p.cs

https://gitlab.com/Pfhoenix/api · C# · 897 lines · 338 code · 55 blank · 504 comment · 0 complexity · cdbae99208ea36a982eeec84b13552f7 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Android.Net.Wifi.P2p.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Android.Net.Wifi.P2p
  18. {
  19. /// <summary>
  20. /// <para>A class representing a Wi-Fi P2p group. A p2p group consists of a single group owner and one or more clients. In the case of a group with only two devices, one will be the group owner and the other will be a group client.</para><para>{<para>WifiP2pManager} </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// android/net/wifi/p2p/WifiP2pGroup
  24. /// </java-name>
  25. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pGroup", AccessFlags = 33)]
  26. public partial class WifiP2pGroup : global::Android.Os.IParcelable
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Implement the Parcelable interface </para>
  31. /// </summary>
  32. /// <java-name>
  33. /// CREATOR
  34. /// </java-name>
  35. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  36. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pGroup> CREATOR;
  37. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  38. public WifiP2pGroup() /* MethodBuilder.Create */
  39. {
  40. }
  41. /// <summary>
  42. /// <para>copy constructor </para>
  43. /// </summary>
  44. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pGroup;)V", AccessFlags = 1)]
  45. public WifiP2pGroup(global::Android.Net.Wifi.P2p.WifiP2pGroup source) /* MethodBuilder.Create */
  46. {
  47. }
  48. /// <summary>
  49. /// <para>Get the network name (SSID) of the group. Legacy Wi-Fi clients will discover the p2p group using the network name. </para>
  50. /// </summary>
  51. /// <java-name>
  52. /// getNetworkName
  53. /// </java-name>
  54. [Dot42.DexImport("getNetworkName", "()Ljava/lang/String;", AccessFlags = 1)]
  55. public virtual string GetNetworkName() /* MethodBuilder.Create */
  56. {
  57. return default(string);
  58. }
  59. /// <summary>
  60. /// <para>Check whether this device is the group owner of the created p2p group </para>
  61. /// </summary>
  62. /// <java-name>
  63. /// isGroupOwner
  64. /// </java-name>
  65. [Dot42.DexImport("isGroupOwner", "()Z", AccessFlags = 1)]
  66. public virtual bool IsGroupOwner() /* MethodBuilder.Create */
  67. {
  68. return default(bool);
  69. }
  70. /// <summary>
  71. /// <para>Get the details of the group owner as a WifiP2pDevice object </para>
  72. /// </summary>
  73. /// <java-name>
  74. /// getOwner
  75. /// </java-name>
  76. [Dot42.DexImport("getOwner", "()Landroid/net/wifi/p2p/WifiP2pDevice;", AccessFlags = 1)]
  77. public virtual global::Android.Net.Wifi.P2p.WifiP2pDevice GetOwner() /* MethodBuilder.Create */
  78. {
  79. return default(global::Android.Net.Wifi.P2p.WifiP2pDevice);
  80. }
  81. /// <summary>
  82. /// <para>Get the list of clients currently part of the p2p group </para>
  83. /// </summary>
  84. /// <java-name>
  85. /// getClientList
  86. /// </java-name>
  87. [Dot42.DexImport("getClientList", "()Ljava/util/Collection;", AccessFlags = 1, Signature = "()Ljava/util/Collection<Landroid/net/wifi/p2p/WifiP2pDevice;>;")]
  88. public virtual global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice> GetClientList() /* MethodBuilder.Create */
  89. {
  90. return default(global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice>);
  91. }
  92. /// <summary>
  93. /// <para>Get the passphrase of the group. This function will return a valid passphrase only at the group owner. Legacy Wi-Fi clients will need this passphrase alongside network name obtained from getNetworkName() to join the group </para>
  94. /// </summary>
  95. /// <java-name>
  96. /// getPassphrase
  97. /// </java-name>
  98. [Dot42.DexImport("getPassphrase", "()Ljava/lang/String;", AccessFlags = 1)]
  99. public virtual string GetPassphrase() /* MethodBuilder.Create */
  100. {
  101. return default(string);
  102. }
  103. /// <summary>
  104. /// <para>Get the interface name on which the group is created </para>
  105. /// </summary>
  106. /// <java-name>
  107. /// getInterface
  108. /// </java-name>
  109. [Dot42.DexImport("getInterface", "()Ljava/lang/String;", AccessFlags = 1)]
  110. public virtual string GetInterface() /* MethodBuilder.Create */
  111. {
  112. return default(string);
  113. }
  114. /// <java-name>
  115. /// toString
  116. /// </java-name>
  117. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  118. public override string ToString() /* MethodBuilder.Create */
  119. {
  120. return default(string);
  121. }
  122. /// <summary>
  123. /// <para>Implement the Parcelable interface </para>
  124. /// </summary>
  125. /// <java-name>
  126. /// describeContents
  127. /// </java-name>
  128. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  129. public virtual int DescribeContents() /* MethodBuilder.Create */
  130. {
  131. return default(int);
  132. }
  133. /// <summary>
  134. /// <para>Implement the Parcelable interface </para>
  135. /// </summary>
  136. /// <java-name>
  137. /// writeToParcel
  138. /// </java-name>
  139. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  140. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  141. {
  142. }
  143. /// <summary>
  144. /// <para>Get the network name (SSID) of the group. Legacy Wi-Fi clients will discover the p2p group using the network name. </para>
  145. /// </summary>
  146. /// <java-name>
  147. /// getNetworkName
  148. /// </java-name>
  149. public string NetworkName
  150. {
  151. [Dot42.DexImport("getNetworkName", "()Ljava/lang/String;", AccessFlags = 1)]
  152. get{ return GetNetworkName(); }
  153. }
  154. /// <summary>
  155. /// <para>Get the details of the group owner as a WifiP2pDevice object </para>
  156. /// </summary>
  157. /// <java-name>
  158. /// getOwner
  159. /// </java-name>
  160. public global::Android.Net.Wifi.P2p.WifiP2pDevice Owner
  161. {
  162. [Dot42.DexImport("getOwner", "()Landroid/net/wifi/p2p/WifiP2pDevice;", AccessFlags = 1)]
  163. get{ return GetOwner(); }
  164. }
  165. /// <summary>
  166. /// <para>Get the list of clients currently part of the p2p group </para>
  167. /// </summary>
  168. /// <java-name>
  169. /// getClientList
  170. /// </java-name>
  171. public global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice> ClientList
  172. {
  173. [Dot42.DexImport("getClientList", "()Ljava/util/Collection;", AccessFlags = 1, Signature = "()Ljava/util/Collection<Landroid/net/wifi/p2p/WifiP2pDevice;>;")]
  174. get{ return GetClientList(); }
  175. }
  176. /// <summary>
  177. /// <para>Get the passphrase of the group. This function will return a valid passphrase only at the group owner. Legacy Wi-Fi clients will need this passphrase alongside network name obtained from getNetworkName() to join the group </para>
  178. /// </summary>
  179. /// <java-name>
  180. /// getPassphrase
  181. /// </java-name>
  182. public string Passphrase
  183. {
  184. [Dot42.DexImport("getPassphrase", "()Ljava/lang/String;", AccessFlags = 1)]
  185. get{ return GetPassphrase(); }
  186. }
  187. /// <summary>
  188. /// <para>Get the interface name on which the group is created </para>
  189. /// </summary>
  190. /// <java-name>
  191. /// getInterface
  192. /// </java-name>
  193. public string Interface
  194. {
  195. [Dot42.DexImport("getInterface", "()Ljava/lang/String;", AccessFlags = 1)]
  196. get{ return GetInterface(); }
  197. }
  198. }
  199. /// <summary>
  200. /// <para>A class representing connection information about a Wi-Fi p2p group</para><para>{<para>WifiP2pManager} </para></para>
  201. /// </summary>
  202. /// <java-name>
  203. /// android/net/wifi/p2p/WifiP2pInfo
  204. /// </java-name>
  205. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pInfo", AccessFlags = 33)]
  206. public partial class WifiP2pInfo : global::Android.Os.IParcelable
  207. /* scope: __dot42__ */
  208. {
  209. /// <summary>
  210. /// <para>Indicates if a p2p group has been successfully formed </para>
  211. /// </summary>
  212. /// <java-name>
  213. /// groupFormed
  214. /// </java-name>
  215. [Dot42.DexImport("groupFormed", "Z", AccessFlags = 1)]
  216. public bool GroupFormed;
  217. /// <summary>
  218. /// <para>Indicates if the current device is the group owner </para>
  219. /// </summary>
  220. /// <java-name>
  221. /// isGroupOwner
  222. /// </java-name>
  223. [Dot42.DexImport("isGroupOwner", "Z", AccessFlags = 1)]
  224. public bool IsGroupOwner;
  225. /// <summary>
  226. /// <para>Group owner address </para>
  227. /// </summary>
  228. /// <java-name>
  229. /// groupOwnerAddress
  230. /// </java-name>
  231. [Dot42.DexImport("groupOwnerAddress", "Ljava/net/InetAddress;", AccessFlags = 1)]
  232. public global::Java.Net.InetAddress GroupOwnerAddress;
  233. /// <summary>
  234. /// <para>Implement the Parcelable interface </para>
  235. /// </summary>
  236. /// <java-name>
  237. /// CREATOR
  238. /// </java-name>
  239. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  240. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pInfo> CREATOR;
  241. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  242. public WifiP2pInfo() /* MethodBuilder.Create */
  243. {
  244. }
  245. /// <summary>
  246. /// <para>copy constructor </para>
  247. /// </summary>
  248. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pInfo;)V", AccessFlags = 1)]
  249. public WifiP2pInfo(global::Android.Net.Wifi.P2p.WifiP2pInfo source) /* MethodBuilder.Create */
  250. {
  251. }
  252. /// <java-name>
  253. /// toString
  254. /// </java-name>
  255. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  256. public override string ToString() /* MethodBuilder.Create */
  257. {
  258. return default(string);
  259. }
  260. /// <summary>
  261. /// <para>Implement the Parcelable interface </para>
  262. /// </summary>
  263. /// <java-name>
  264. /// describeContents
  265. /// </java-name>
  266. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  267. public virtual int DescribeContents() /* MethodBuilder.Create */
  268. {
  269. return default(int);
  270. }
  271. /// <summary>
  272. /// <para>Implement the Parcelable interface </para>
  273. /// </summary>
  274. /// <java-name>
  275. /// writeToParcel
  276. /// </java-name>
  277. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  278. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  279. {
  280. }
  281. }
  282. /// <summary>
  283. /// <para>A class representing a Wi-Fi p2p device</para><para>Note that the operations are not thread safe {<para>WifiP2pManager} </para></para>
  284. /// </summary>
  285. /// <java-name>
  286. /// android/net/wifi/p2p/WifiP2pDevice
  287. /// </java-name>
  288. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pDevice", AccessFlags = 33)]
  289. public partial class WifiP2pDevice : global::Android.Os.IParcelable
  290. /* scope: __dot42__ */
  291. {
  292. /// <summary>
  293. /// <para>The device name is a user friendly string to identify a Wi-Fi p2p device </para>
  294. /// </summary>
  295. /// <java-name>
  296. /// deviceName
  297. /// </java-name>
  298. [Dot42.DexImport("deviceName", "Ljava/lang/String;", AccessFlags = 1)]
  299. public string DeviceName;
  300. /// <summary>
  301. /// <para>The device MAC address uniquely identifies a Wi-Fi p2p device </para>
  302. /// </summary>
  303. /// <java-name>
  304. /// deviceAddress
  305. /// </java-name>
  306. [Dot42.DexImport("deviceAddress", "Ljava/lang/String;", AccessFlags = 1)]
  307. public string DeviceAddress;
  308. /// <summary>
  309. /// <para>Primary device type identifies the type of device. For example, an application could filter the devices discovered to only display printers if the purpose is to enable a printing action from the user. See the Wi-Fi Direct technical specification for the full list of standard device types supported. </para>
  310. /// </summary>
  311. /// <java-name>
  312. /// primaryDeviceType
  313. /// </java-name>
  314. [Dot42.DexImport("primaryDeviceType", "Ljava/lang/String;", AccessFlags = 1)]
  315. public string PrimaryDeviceType;
  316. /// <summary>
  317. /// <para>Secondary device type is an optional attribute that can be provided by a device in addition to the primary device type. </para>
  318. /// </summary>
  319. /// <java-name>
  320. /// secondaryDeviceType
  321. /// </java-name>
  322. [Dot42.DexImport("secondaryDeviceType", "Ljava/lang/String;", AccessFlags = 1)]
  323. public string SecondaryDeviceType;
  324. /// <java-name>
  325. /// CONNECTED
  326. /// </java-name>
  327. [Dot42.DexImport("CONNECTED", "I", AccessFlags = 25)]
  328. public const int CONNECTED = 0;
  329. /// <java-name>
  330. /// INVITED
  331. /// </java-name>
  332. [Dot42.DexImport("INVITED", "I", AccessFlags = 25)]
  333. public const int INVITED = 1;
  334. /// <java-name>
  335. /// FAILED
  336. /// </java-name>
  337. [Dot42.DexImport("FAILED", "I", AccessFlags = 25)]
  338. public const int FAILED = 2;
  339. /// <java-name>
  340. /// AVAILABLE
  341. /// </java-name>
  342. [Dot42.DexImport("AVAILABLE", "I", AccessFlags = 25)]
  343. public const int AVAILABLE = 3;
  344. /// <java-name>
  345. /// UNAVAILABLE
  346. /// </java-name>
  347. [Dot42.DexImport("UNAVAILABLE", "I", AccessFlags = 25)]
  348. public const int UNAVAILABLE = 4;
  349. /// <summary>
  350. /// <para>Device connection status </para>
  351. /// </summary>
  352. /// <java-name>
  353. /// status
  354. /// </java-name>
  355. [Dot42.DexImport("status", "I", AccessFlags = 1)]
  356. public int Status;
  357. /// <summary>
  358. /// <para>Implement the Parcelable interface </para>
  359. /// </summary>
  360. /// <java-name>
  361. /// CREATOR
  362. /// </java-name>
  363. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  364. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pDevice> CREATOR;
  365. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  366. public WifiP2pDevice() /* MethodBuilder.Create */
  367. {
  368. }
  369. /// <summary>
  370. /// <para>copy constructor </para>
  371. /// </summary>
  372. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pDevice;)V", AccessFlags = 1)]
  373. public WifiP2pDevice(global::Android.Net.Wifi.P2p.WifiP2pDevice source) /* MethodBuilder.Create */
  374. {
  375. }
  376. /// <summary>
  377. /// <para>Returns true if WPS push button configuration is supported </para>
  378. /// </summary>
  379. /// <java-name>
  380. /// wpsPbcSupported
  381. /// </java-name>
  382. [Dot42.DexImport("wpsPbcSupported", "()Z", AccessFlags = 1)]
  383. public virtual bool WpsPbcSupported() /* MethodBuilder.Create */
  384. {
  385. return default(bool);
  386. }
  387. /// <summary>
  388. /// <para>Returns true if WPS keypad configuration is supported </para>
  389. /// </summary>
  390. /// <java-name>
  391. /// wpsKeypadSupported
  392. /// </java-name>
  393. [Dot42.DexImport("wpsKeypadSupported", "()Z", AccessFlags = 1)]
  394. public virtual bool WpsKeypadSupported() /* MethodBuilder.Create */
  395. {
  396. return default(bool);
  397. }
  398. /// <summary>
  399. /// <para>Returns true if WPS display configuration is supported </para>
  400. /// </summary>
  401. /// <java-name>
  402. /// wpsDisplaySupported
  403. /// </java-name>
  404. [Dot42.DexImport("wpsDisplaySupported", "()Z", AccessFlags = 1)]
  405. public virtual bool WpsDisplaySupported() /* MethodBuilder.Create */
  406. {
  407. return default(bool);
  408. }
  409. /// <summary>
  410. /// <para>Returns true if the device is capable of service discovery </para>
  411. /// </summary>
  412. /// <java-name>
  413. /// isServiceDiscoveryCapable
  414. /// </java-name>
  415. [Dot42.DexImport("isServiceDiscoveryCapable", "()Z", AccessFlags = 1)]
  416. public virtual bool IsServiceDiscoveryCapable() /* MethodBuilder.Create */
  417. {
  418. return default(bool);
  419. }
  420. /// <summary>
  421. /// <para>Returns true if the device is a group owner </para>
  422. /// </summary>
  423. /// <java-name>
  424. /// isGroupOwner
  425. /// </java-name>
  426. [Dot42.DexImport("isGroupOwner", "()Z", AccessFlags = 1)]
  427. public virtual bool IsGroupOwner() /* MethodBuilder.Create */
  428. {
  429. return default(bool);
  430. }
  431. /// <java-name>
  432. /// equals
  433. /// </java-name>
  434. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 1)]
  435. public override bool Equals(object obj) /* MethodBuilder.Create */
  436. {
  437. return default(bool);
  438. }
  439. /// <java-name>
  440. /// toString
  441. /// </java-name>
  442. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  443. public override string ToString() /* MethodBuilder.Create */
  444. {
  445. return default(string);
  446. }
  447. /// <summary>
  448. /// <para>Implement the Parcelable interface </para>
  449. /// </summary>
  450. /// <java-name>
  451. /// describeContents
  452. /// </java-name>
  453. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  454. public virtual int DescribeContents() /* MethodBuilder.Create */
  455. {
  456. return default(int);
  457. }
  458. /// <summary>
  459. /// <para>Implement the Parcelable interface </para>
  460. /// </summary>
  461. /// <java-name>
  462. /// writeToParcel
  463. /// </java-name>
  464. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  465. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  466. {
  467. }
  468. }
  469. /// <summary>
  470. /// <para>This class provides the API for managing Wi-Fi peer-to-peer connectivity. This lets an application discover available peers, setup connection to peers and query for the list of peers. When a p2p connection is formed over wifi, the device continues to maintain the uplink connection over mobile or any other available network for internet connectivity on the device.</para><para>The API is asynchronous and responses to requests from an application are on listener callbacks provided by the application. The application needs to do an initialization with initialize before doing any p2p operation.</para><para>Most application calls need a ActionListener instance for receiving callbacks ActionListener#onSuccess or ActionListener#onFailure. Action callbacks indicate whether the initiation of the action was a success or a failure. Upon failure, the reason of failure can be one of ERROR, P2P_UNSUPPORTED or BUSY.</para><para>An application can initiate discovery of peers with discoverPeers. An initiated discovery request from an application stays active until the device starts connecting to a peer ,forms a p2p group or there is an explicit stopPeerDiscovery. Applications can listen to WIFI_P2P_DISCOVERY_CHANGED_ACTION to know if a peer-to-peer discovery is running or stopped. Additionally, WIFI_P2P_PEERS_CHANGED_ACTION indicates if the peer list has changed.</para><para>When an application needs to fetch the current list of peers, it can request the list of peers with requestPeers. When the peer list is available PeerListListener#onPeersAvailable is called with the device list.</para><para>An application can initiate a connection request to a peer through connect. See WifiP2pConfig for details on setting up the configuration. For communication with legacy Wi-Fi devices that do not support p2p, an app can create a group using createGroup which creates an access point whose details can be fetched with requestGroupInfo.</para><para>After a successful group formation through createGroup or through connect, use requestConnectionInfo to fetch the connection details. The connection info WifiP2pInfo contains the address of the group owner WifiP2pInfo#groupOwnerAddress and a flag WifiP2pInfo#isGroupOwner to indicate if the current device is a p2p group owner. A p2p client can thus communicate with the p2p group owner through a socket connection.</para><para>With peer discovery using discoverPeers, an application discovers the neighboring peers, but has no good way to figure out which peer to establish a connection with. For example, if a game application is interested in finding all the neighboring peers that are also running the same game, it has no way to find out until after the connection is setup. Pre-association service discovery is meant to address this issue of filtering the peers based on the running services.</para><para>With pre-association service discovery, an application can advertise a service for a application on a peer device prior to a connection setup between the devices. Currently, DNS based service discovery (Bonjour) and Upnp are the higher layer protocols supported. Get Bonjour resources at dns-sd.org and Upnp resources at upnp.org As an example, a video application can discover a Upnp capable media renderer prior to setting up a Wi-fi p2p connection with the device.</para><para>An application can advertise a Upnp or a Bonjour service with a call to addLocalService. After a local service is added, the framework automatically responds to a peer application discovering the service prior to establishing a p2p connection. A call to removeLocalService removes a local service and clearLocalServices can be used to clear all local services.</para><para>An application that is looking for peer devices that support certain services can do so with a call to discoverServices. Prior to initiating the discovery, application can add service discovery request with a call to addServiceRequest, remove a service discovery request with a call to removeServiceRequest or clear all requests with a call to clearServiceRequests. When no service requests remain, a previously running service discovery will stop.</para><para>The application is notified of a result of service discovery request through listener callbacks set through setDnsSdResponseListeners for Bonjour or setUpnpServiceResponseListener for Upnp.</para><para><b>Note:</b> Registering an application handler with initialize requires the permissions android.Manifest.permission#ACCESS_WIFI_STATE and android.Manifest.permission#CHANGE_WIFI_STATE to perform any further peer-to-peer operations.</para><para>Get an instance of this class by calling Context.getSystemService(Context.WIFI_P2P_SERVICE).</para><para>{<para>WifiP2pConfig} {</para><simplesectsep></simplesectsep><para>WifiP2pInfo} {</para><simplesectsep></simplesectsep><para>WifiP2pGroup} {</para><simplesectsep></simplesectsep><para>WifiP2pDevice} {</para><simplesectsep></simplesectsep><para>WifiP2pDeviceList} {</para><simplesectsep></simplesectsep><para>android.net.wifi.WpsInfo} </para></para>
  471. /// </summary>
  472. /// <java-name>
  473. /// android/net/wifi/p2p/WifiP2pManager
  474. /// </java-name>
  475. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager", AccessFlags = 33)]
  476. public partial class WifiP2pManager
  477. /* scope: __dot42__ */
  478. {
  479. /// <summary>
  480. /// <para>Broadcast intent action to indicate whether Wi-Fi p2p is enabled or disabled. An extra EXTRA_WIFI_STATE provides the state information as int.</para><para><para>EXTRA_WIFI_STATE </para></para>
  481. /// </summary>
  482. /// <java-name>
  483. /// WIFI_P2P_STATE_CHANGED_ACTION
  484. /// </java-name>
  485. [Dot42.DexImport("WIFI_P2P_STATE_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  486. public const string WIFI_P2P_STATE_CHANGED_ACTION = "android.net.wifi.p2p.STATE_CHANGED";
  487. /// <summary>
  488. /// <para>The lookup key for an int that indicates whether Wi-Fi p2p is enabled or disabled. Retrieve it with android.content.Intent#getIntExtra(String,int).</para><para><para>WIFI_P2P_STATE_DISABLED </para><simplesectsep></simplesectsep><para>WIFI_P2P_STATE_ENABLED </para></para>
  489. /// </summary>
  490. /// <java-name>
  491. /// EXTRA_WIFI_STATE
  492. /// </java-name>
  493. [Dot42.DexImport("EXTRA_WIFI_STATE", "Ljava/lang/String;", AccessFlags = 25)]
  494. public const string EXTRA_WIFI_STATE = "wifi_p2p_state";
  495. /// <summary>
  496. /// <para>Wi-Fi p2p is disabled.</para><para><para>WIFI_P2P_STATE_CHANGED_ACTION </para></para>
  497. /// </summary>
  498. /// <java-name>
  499. /// WIFI_P2P_STATE_DISABLED
  500. /// </java-name>
  501. [Dot42.DexImport("WIFI_P2P_STATE_DISABLED", "I", AccessFlags = 25)]
  502. public const int WIFI_P2P_STATE_DISABLED = 1;
  503. /// <summary>
  504. /// <para>Wi-Fi p2p is enabled.</para><para><para>WIFI_P2P_STATE_CHANGED_ACTION </para></para>
  505. /// </summary>
  506. /// <java-name>
  507. /// WIFI_P2P_STATE_ENABLED
  508. /// </java-name>
  509. [Dot42.DexImport("WIFI_P2P_STATE_ENABLED", "I", AccessFlags = 25)]
  510. public const int WIFI_P2P_STATE_ENABLED = 2;
  511. /// <summary>
  512. /// <para>Broadcast intent action indicating that the state of Wi-Fi p2p connectivity has changed. One extra EXTRA_WIFI_P2P_INFO provides the p2p connection info in the form of a WifiP2pInfo object. Another extra EXTRA_NETWORK_INFO provides the network info in the form of a android.net.NetworkInfo. A third extra provides the details of the group.</para><para><para>EXTRA_WIFI_P2P_INFO </para><simplesectsep></simplesectsep><para>EXTRA_NETWORK_INFO </para><simplesectsep></simplesectsep><para>EXTRA_WIFI_P2P_GROUP </para></para>
  513. /// </summary>
  514. /// <java-name>
  515. /// WIFI_P2P_CONNECTION_CHANGED_ACTION
  516. /// </java-name>
  517. [Dot42.DexImport("WIFI_P2P_CONNECTION_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  518. public const string WIFI_P2P_CONNECTION_CHANGED_ACTION = "android.net.wifi.p2p.CONNECTION_STATE_CHANGE";
  519. /// <summary>
  520. /// <para>The lookup key for a android.net.wifi.p2p.WifiP2pInfo object Retrieve with android.content.Intent#getParcelableExtra(String). </para>
  521. /// </summary>
  522. /// <java-name>
  523. /// EXTRA_WIFI_P2P_INFO
  524. /// </java-name>
  525. [Dot42.DexImport("EXTRA_WIFI_P2P_INFO", "Ljava/lang/String;", AccessFlags = 25)]
  526. public const string EXTRA_WIFI_P2P_INFO = "wifiP2pInfo";
  527. /// <summary>
  528. /// <para>The lookup key for a android.net.NetworkInfo object associated with the p2p network. Retrieve with android.content.Intent#getParcelableExtra(String). </para>
  529. /// </summary>
  530. /// <java-name>
  531. /// EXTRA_NETWORK_INFO
  532. /// </java-name>
  533. [Dot42.DexImport("EXTRA_NETWORK_INFO", "Ljava/lang/String;", AccessFlags = 25)]
  534. public const string EXTRA_NETWORK_INFO = "networkInfo";
  535. /// <summary>
  536. /// <para>Broadcast intent action indicating that the available peer list has changed. This can be sent as a result of peers being found, lost or updated.</para><para>An extra EXTRA_P2P_DEVICE_LIST provides the full list of current peers. The full list of peers can also be obtained any time with requestPeers.</para><para><para>EXTRA_P2P_DEVICE_LIST </para></para>
  537. /// </summary>
  538. /// <java-name>
  539. /// WIFI_P2P_PEERS_CHANGED_ACTION
  540. /// </java-name>
  541. [Dot42.DexImport("WIFI_P2P_PEERS_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  542. public const string WIFI_P2P_PEERS_CHANGED_ACTION = "android.net.wifi.p2p.PEERS_CHANGED";
  543. /// <summary>
  544. /// <para>Broadcast intent action indicating that peer discovery has either started or stopped. One extra EXTRA_DISCOVERY_STATE indicates whether discovery has started or stopped.</para><para>Note that discovery will be stopped during a connection setup. If the application tries to re-initiate discovery during this time, it can fail. </para>
  545. /// </summary>
  546. /// <java-name>
  547. /// WIFI_P2P_DISCOVERY_CHANGED_ACTION
  548. /// </java-name>
  549. [Dot42.DexImport("WIFI_P2P_DISCOVERY_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  550. public const string WIFI_P2P_DISCOVERY_CHANGED_ACTION = "android.net.wifi.p2p.DISCOVERY_STATE_CHANGE";
  551. /// <summary>
  552. /// <para>The lookup key for an int that indicates whether p2p discovery has started or stopped. Retrieve it with android.content.Intent#getIntExtra(String,int).</para><para><para>WIFI_P2P_DISCOVERY_STARTED </para><simplesectsep></simplesectsep><para>WIFI_P2P_DISCOVERY_STOPPED </para></para>
  553. /// </summary>
  554. /// <java-name>
  555. /// EXTRA_DISCOVERY_STATE
  556. /// </java-name>
  557. [Dot42.DexImport("EXTRA_DISCOVERY_STATE", "Ljava/lang/String;", AccessFlags = 25)]
  558. public const string EXTRA_DISCOVERY_STATE = "discoveryState";
  559. /// <summary>
  560. /// <para>p2p discovery has stopped</para><para><para>WIFI_P2P_DISCOVERY_CHANGED_ACTION </para></para>
  561. /// </summary>
  562. /// <java-name>
  563. /// WIFI_P2P_DISCOVERY_STOPPED
  564. /// </java-name>
  565. [Dot42.DexImport("WIFI_P2P_DISCOVERY_STOPPED", "I", AccessFlags = 25)]
  566. public const int WIFI_P2P_DISCOVERY_STOPPED = 1;
  567. /// <summary>
  568. /// <para>p2p discovery has started</para><para><para>WIFI_P2P_DISCOVERY_CHANGED_ACTION </para></para>
  569. /// </summary>
  570. /// <java-name>
  571. /// WIFI_P2P_DISCOVERY_STARTED
  572. /// </java-name>
  573. [Dot42.DexImport("WIFI_P2P_DISCOVERY_STARTED", "I", AccessFlags = 25)]
  574. public const int WIFI_P2P_DISCOVERY_STARTED = 2;
  575. /// <summary>
  576. /// <para>Broadcast intent action indicating that this device details have changed. </para>
  577. /// </summary>
  578. /// <java-name>
  579. /// WIFI_P2P_THIS_DEVICE_CHANGED_ACTION
  580. /// </java-name>
  581. [Dot42.DexImport("WIFI_P2P_THIS_DEVICE_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  582. public const string WIFI_P2P_THIS_DEVICE_CHANGED_ACTION = "android.net.wifi.p2p.THIS_DEVICE_CHANGED";
  583. /// <summary>
  584. /// <para>The lookup key for a android.net.wifi.p2p.WifiP2pDevice object Retrieve with android.content.Intent#getParcelableExtra(String). </para>
  585. /// </summary>
  586. /// <java-name>
  587. /// EXTRA_WIFI_P2P_DEVICE
  588. /// </java-name>
  589. [Dot42.DexImport("EXTRA_WIFI_P2P_DEVICE", "Ljava/lang/String;", AccessFlags = 25)]
  590. public const string EXTRA_WIFI_P2P_DEVICE = "wifiP2pDevice";
  591. /// <summary>
  592. /// <para>Passed with ActionListener#onFailure. Indicates that the operation failed due to an internal error. </para>
  593. /// </summary>
  594. /// <java-name>
  595. /// ERROR
  596. /// </java-name>
  597. [Dot42.DexImport("ERROR", "I", AccessFlags = 25)]
  598. public const int ERROR = 0;
  599. /// <summary>
  600. /// <para>Passed with ActionListener#onFailure. Indicates that the operation failed because p2p is unsupported on the device. </para>
  601. /// </summary>
  602. /// <java-name>
  603. /// P2P_UNSUPPORTED
  604. /// </java-name>
  605. [Dot42.DexImport("P2P_UNSUPPORTED", "I", AccessFlags = 25)]
  606. public const int P2P_UNSUPPORTED = 1;
  607. /// <summary>
  608. /// <para>Passed with ActionListener#onFailure. Indicates that the operation failed because the framework is busy and unable to service the request </para>
  609. /// </summary>
  610. /// <java-name>
  611. /// BUSY
  612. /// </java-name>
  613. [Dot42.DexImport("BUSY", "I", AccessFlags = 25)]
  614. public const int BUSY = 2;
  615. /// <summary>
  616. /// <para>Passed with ActionListener#onFailure. Indicates that the discoverServices failed because no service requests are added. Use addServiceRequest to add a service request. </para>
  617. /// </summary>
  618. /// <java-name>
  619. /// NO_SERVICE_REQUESTS
  620. /// </java-name>
  621. [Dot42.DexImport("NO_SERVICE_REQUESTS", "I", AccessFlags = 25)]
  622. public const int NO_SERVICE_REQUESTS = 3;
  623. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  624. internal WifiP2pManager() /* MethodBuilder.Create */
  625. {
  626. }
  627. /// <summary>
  628. /// <para>Registers the application with the Wi-Fi framework. This function must be the first to be called before any p2p operations are performed.</para><para></para>
  629. /// </summary>
  630. /// <returns>
  631. /// <para>Channel instance that is necessary for performing any further p2p operations </para>
  632. /// </returns>
  633. /// <java-name>
  634. /// initialize
  635. /// </java-name>
  636. [Dot42.DexImport("initialize", "(Landroid/content/Context;Landroid/os/Looper;Landroid/net/wifi/p2p/WifiP2pManager" +
  637. "$ChannelListener;)Landroid/net/wifi/p2p/WifiP2pManager$Channel;", AccessFlags = 1)]
  638. public virtual global::Android.Net.Wifi.P2p.WifiP2pManager.Channel Initialize(global::Android.Content.Context srcContext, global::Android.Os.Looper srcLooper, global::Android.Net.Wifi.P2p.WifiP2pManager.IChannelListener listener) /* MethodBuilder.Create */
  639. {
  640. return default(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel);
  641. }
  642. /// <summary>
  643. /// <para>Initiate peer discovery. A discovery process involves scanning for available Wi-Fi peers for the purpose of establishing a connection.</para><para>The function call immediately returns after sending a discovery request to the framework. The application is notified of a success or failure to initiate discovery through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para>The discovery remains active until a connection is initiated or a p2p group is formed. Register for WIFI_P2P_PEERS_CHANGED_ACTION intent to determine when the framework notifies of a change as peers are discovered.</para><para>Upon receiving a WIFI_P2P_PEERS_CHANGED_ACTION intent, an application can request for the list of peers using requestPeers.</para><para></para>
  644. /// </summary>
  645. /// <java-name>
  646. /// discoverPeers
  647. /// </java-name>
  648. [Dot42.DexImport("discoverPeers", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  649. "r$ActionListener;)V", AccessFlags = 1)]
  650. public virtual void DiscoverPeers(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  651. {
  652. }
  653. /// <summary>
  654. /// <para>Stop an ongoing peer discovery</para><para>The function call immediately returns after sending a stop request to the framework. The application is notified of a success or failure to initiate stop through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  655. /// </summary>
  656. /// <java-name>
  657. /// stopPeerDiscovery
  658. /// </java-name>
  659. [Dot42.DexImport("stopPeerDiscovery", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  660. "r$ActionListener;)V", AccessFlags = 1)]
  661. public virtual void StopPeerDiscovery(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  662. {
  663. }
  664. /// <summary>
  665. /// <para>Start a p2p connection to a device with the specified configuration.</para><para>The function call immediately returns after sending a connection request to the framework. The application is notified of a success or failure to initiate connect through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para>Register for WIFI_P2P_CONNECTION_CHANGED_ACTION intent to determine when the framework notifies of a change in connectivity.</para><para>If the current device is not part of a p2p group, a connect request initiates a group negotiation with the peer.</para><para>If the current device is part of an existing p2p group or has created a p2p group with createGroup, an invitation to join the group is sent to the peer device.</para><para></para>
  666. /// </summary>
  667. /// <java-name>
  668. /// connect
  669. /// </java-name>
  670. [Dot42.DexImport("connect", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pConfig" +
  671. ";Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", AccessFlags = 1)]
  672. public virtual void Connect(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pConfig config, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  673. {
  674. }
  675. /// <summary>
  676. /// <para>Cancel any ongoing p2p group negotiation</para><para>The function call immediately returns after sending a connection cancellation request to the framework. The application is notified of a success or failure to initiate cancellation through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  677. /// </summary>
  678. /// <java-name>
  679. /// cancelConnect
  680. /// </java-name>
  681. [Dot42.DexImport("cancelConnect", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  682. "r$ActionListener;)V", AccessFlags = 1)]
  683. public virtual void CancelConnect(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  684. {
  685. }
  686. /// <summary>
  687. /// <para>Create a p2p group with the current device as the group owner. This essentially creates an access point that can accept connections from legacy clients as well as other p2p devices.</para><para><b>Note:</b> This function would normally not be used unless the current device needs to form a p2p connection with a legacy client</para><para>The function call immediately returns after sending a group creation request to the framework. The application is notified of a success or failure to initiate group creation through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para>Application can request for the group details with requestGroupInfo.</para><para></para>
  688. /// </summary>
  689. /// <java-name>
  690. /// createGroup
  691. /// </java-name>
  692. [Dot42.DexImport("createGroup", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  693. "r$ActionListener;)V", AccessFlags = 1)]
  694. public virtual void CreateGroup(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  695. {
  696. }
  697. /// <summary>
  698. /// <para>Remove the current p2p group.</para><para>The function call immediately returns after sending a group removal request to the framework. The application is notified of a success or failure to initiate group removal through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  699. /// </summary>
  700. /// <java-name>
  701. /// removeGroup
  702. /// </java-name>
  703. [Dot42.DexImport("removeGroup", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  704. "r$ActionListener;)V", AccessFlags = 1)]
  705. public virtual void RemoveGroup(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  706. {
  707. }
  708. /// <summary>
  709. /// <para>Register a local service for service discovery. If a local service is registered, the framework automatically responds to a service discovery request from a peer.</para><para>The function call immediately returns after sending a request to add a local service to the framework. The application is notified of a success or failure to add service through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para>The service information is set through WifiP2pServiceInfo.<br></br> or its subclass calls WifiP2pUpnpServiceInfo#newInstance or WifiP2pDnsSdServiceInfo#newInstance for a Upnp or Bonjour service respectively</para><para>The service information can be cleared with calls to removeLocalService or clearLocalServices.</para><para></para>
  710. /// </summary>
  711. /// <java-name>
  712. /// addLocalService
  713. /// </java-name>
  714. [Dot42.DexImport("addLocalService", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pSe" +
  715. "rviceInfo;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", AccessFlags = 1)]
  716. public virtual void AddLocalService(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.Nsd.WifiP2pServiceInfo servInfo, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  717. {
  718. }
  719. /// <summary>
  720. /// <para>Remove a registered local service added with addLocalService</para><para>The function call immediately returns after sending a request to remove a local service to the framework. The application is notified of a success or failure to add service through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  721. /// </summary>
  722. /// <java-name>
  723. /// removeLocalService
  724. /// </java-name>
  725. [Dot42.DexImport("removeLocalService", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pSe" +
  726. "rviceInfo;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", AccessFlags = 1)]
  727. public virtual void RemoveLocalService(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.Nsd.WifiP2pServiceInfo servInfo, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  728. {
  729. }
  730. /// <summary>
  731. /// <para>Clear all registered local services of service discovery.</para><para>The function call immediately returns after sending a request to clear all local services to the framework. The application is notified of a success or failure to add service through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  732. /// </summary>
  733. /// <java-name>
  734. /// clearLocalServices
  735. /// </java-name>
  736. [Dot42.DexImport("clearLocalServices", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  737. "r$ActionListener;)V", AccessFlags = 1)]
  738. public virtual void ClearLocalServices(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  739. {
  740. }
  741. /// <summary>
  742. /// <para>Register a callback to be invoked on receiving service discovery response. Used only for vendor specific protocol right now. For Bonjour or Upnp, use setDnsSdResponseListeners or setUpnpServiceResponseListener respectively.</para><para>see discoverServices for the detail.</para><para></para>
  743. /// </summary>
  744. /// <java-name>
  745. /// setServiceResponseListener
  746. /// </java-name>
  747. [Dot42.DexImport("setServiceResponseListener", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  748. "r$ServiceResponseListener;)V", AccessFlags = 1)]
  749. public virtual void SetServiceResponseListener(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IServiceResponseListener listener) /* MethodBuilder.Create */
  750. {
  751. }
  752. /// <summary>
  753. /// <para>Register a callback to be invoked on receiving Bonjour service discovery response.</para><para>see discoverServices for the detail.</para><para></para>
  754. /// </summary>
  755. /// <java-name>
  756. /// setDnsSdResponseListeners
  757. /// </java-name>
  758. [Dot42.DexImport("setDnsSdResponseListeners", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  759. "r$DnsSdServiceResponseListener;Landroid/net/wifi/p2p/WifiP2pManager$DnsSdTxtReco" +
  760. "rdListener;)V", AccessFlags = 1)]
  761. public virtual void SetDnsSdResponseListeners(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdServiceResponseListener servListener, global::Android.Net.Wifi.P2p.WifiP2pManager.IDnsSdTxtRecordListener txtListener) /* MethodBuilder.Create */
  762. {
  763. }
  764. /// <summary>
  765. /// <para>Register a callback to be invoked on receiving upnp service discovery response.</para><para>see discoverServices for the detail.</para><para></para>
  766. /// </summary>
  767. /// <java-name>
  768. /// setUpnpServiceResponseListener
  769. /// </java-name>
  770. [Dot42.DexImport("setUpnpServiceResponseListener", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  771. "r$UpnpServiceResponseListener;)V", AccessFlags = 1)]
  772. public virtual void SetUpnpServiceResponseListener(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IUpnpServiceResponseListener listener) /* MethodBuilder.Create */
  773. {
  774. }
  775. /// <summary>
  776. /// <para>Initiate service discovery. A discovery process involves scanning for requested services for the purpose of establishing a connection to a peer that supports an available service.</para><para>The function call immediately returns after sending a request to start service discovery to the framework. The application is notified of a success or failure to initiate discovery through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para>The services to be discovered are specified with calls to addServiceRequest.</para><para>The application is notified of the response against the service discovery request through listener callbacks registered by setServiceResponseListener or setDnsSdResponseListeners, or setUpnpServiceResponseListener.</para><para></para>
  777. /// </summary>
  778. /// <java-name>
  779. /// discoverServices
  780. /// </java-name>
  781. [Dot42.DexImport("discoverServices", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  782. "r$ActionListener;)V", AccessFlags = 1)]
  783. public virtual void DiscoverServices(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  784. {
  785. }
  786. /// <summary>
  787. /// <para>Add a service discovery request.</para><para>The function call immediately returns after sending a request to add service discovery request to the framework. The application is notified of a success or failure to add service through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para>After service discovery request is added, you can initiate service discovery by discoverServices.</para><para>The added service requests can be cleared with calls to removeServiceRequest(Channel, WifiP2pServiceRequest, ActionListener) or clearServiceRequests(Channel, ActionListener).</para><para></para>
  788. /// </summary>
  789. /// <java-name>
  790. /// addServiceRequest
  791. /// </java-name>
  792. [Dot42.DexImport("addServiceRequest", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pSe" +
  793. "rviceRequest;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", AccessFlags = 1)]
  794. public virtual void AddServiceRequest(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest req, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  795. {
  796. }
  797. /// <summary>
  798. /// <para>Remove a specified service discovery request added with addServiceRequest</para><para>The function call immediately returns after sending a request to remove service discovery request to the framework. The application is notified of a success or failure to add service through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  799. /// </summary>
  800. /// <java-name>
  801. /// removeServiceRequest
  802. /// </java-name>
  803. [Dot42.DexImport("removeServiceRequest", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/nsd/WifiP2pSe" +
  804. "rviceRequest;Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", AccessFlags = 1)]
  805. public virtual void RemoveServiceRequest(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.Nsd.WifiP2pServiceRequest req, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  806. {
  807. }
  808. /// <summary>
  809. /// <para>Clear all registered service discovery requests.</para><para>The function call immediately returns after sending a request to clear all service discovery requests to the framework. The application is notified of a success or failure to add service through listener callbacks ActionListener#onSuccess or ActionListener#onFailure.</para><para></para>
  810. /// </summary>
  811. /// <java-name>
  812. /// clearServiceRequests
  813. /// </java-name>
  814. [Dot42.DexImport("clearServiceRequests", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  815. "r$ActionListener;)V", AccessFlags = 1)]
  816. public virtual void ClearServiceRequests(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  817. {
  818. }
  819. /// <summary>
  820. /// <para>Request the current list of peers.</para><para></para>
  821. /// </summary>
  822. /// <java-name>
  823. /// requestPeers
  824. /// </java-name>
  825. [Dot42.DexImport("requestPeers", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  826. "r$PeerListListener;)V", AccessFlags = 1)]
  827. public virtual void RequestPeers(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IPeerListListener listener) /* MethodBuilder.Create */
  828. {
  829. }
  830. /// <summary>
  831. /// <para>Request device connection info.</para><para></para>
  832. /// </summary>
  833. /// <java-name>
  834. /// requestConnectionInfo
  835. /// </java-name>
  836. [Dot42.DexImport("requestConnectionInfo", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  837. "r$ConnectionInfoListener;)V", AccessFlags = 1)]
  838. public virtual void RequestConnectionInfo(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IConnectionInfoListener listener) /* MethodBuilder.Create */
  839. {
  840. }
  841. /// <summary>
  842. /// <para>Request p2p group info.</para><para></pa