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

https://gitlab.com/Pfhoenix/api · C# · 1048 lines · 391 code · 75 blank · 582 comment · 0 complexity · 268752c50aeee0c9e85dcc849ae5e214 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 connection information about a Wi-Fi p2p group</para><para>{<para>WifiP2pManager} </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// android/net/wifi/p2p/WifiP2pInfo
  24. /// </java-name>
  25. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pInfo", AccessFlags = 33)]
  26. public partial class WifiP2pInfo : global::Android.Os.IParcelable
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Indicates if a p2p group has been successfully formed </para>
  31. /// </summary>
  32. /// <java-name>
  33. /// groupFormed
  34. /// </java-name>
  35. [Dot42.DexImport("groupFormed", "Z", AccessFlags = 1)]
  36. public bool GroupFormed;
  37. /// <summary>
  38. /// <para>Indicates if the current device is the group owner </para>
  39. /// </summary>
  40. /// <java-name>
  41. /// isGroupOwner
  42. /// </java-name>
  43. [Dot42.DexImport("isGroupOwner", "Z", AccessFlags = 1)]
  44. public bool IsGroupOwner;
  45. /// <summary>
  46. /// <para>Group owner address </para>
  47. /// </summary>
  48. /// <java-name>
  49. /// groupOwnerAddress
  50. /// </java-name>
  51. [Dot42.DexImport("groupOwnerAddress", "Ljava/net/InetAddress;", AccessFlags = 1)]
  52. public global::Java.Net.InetAddress GroupOwnerAddress;
  53. /// <summary>
  54. /// <para>Implement the Parcelable interface </para>
  55. /// </summary>
  56. /// <java-name>
  57. /// CREATOR
  58. /// </java-name>
  59. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  60. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pInfo> CREATOR;
  61. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  62. public WifiP2pInfo() /* MethodBuilder.Create */
  63. {
  64. }
  65. /// <summary>
  66. /// <para>copy constructor </para>
  67. /// </summary>
  68. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pInfo;)V", AccessFlags = 1)]
  69. public WifiP2pInfo(global::Android.Net.Wifi.P2p.WifiP2pInfo source) /* MethodBuilder.Create */
  70. {
  71. }
  72. /// <java-name>
  73. /// toString
  74. /// </java-name>
  75. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  76. public override string ToString() /* MethodBuilder.Create */
  77. {
  78. return default(string);
  79. }
  80. /// <summary>
  81. /// <para>Implement the Parcelable interface </para>
  82. /// </summary>
  83. /// <java-name>
  84. /// describeContents
  85. /// </java-name>
  86. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  87. public virtual int DescribeContents() /* MethodBuilder.Create */
  88. {
  89. return default(int);
  90. }
  91. /// <summary>
  92. /// <para>Implement the Parcelable interface </para>
  93. /// </summary>
  94. /// <java-name>
  95. /// writeToParcel
  96. /// </java-name>
  97. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  98. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  99. {
  100. }
  101. }
  102. /// <summary>
  103. /// <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>
  104. /// </summary>
  105. /// <java-name>
  106. /// android/net/wifi/p2p/WifiP2pGroup
  107. /// </java-name>
  108. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pGroup", AccessFlags = 33)]
  109. public partial class WifiP2pGroup : global::Android.Os.IParcelable
  110. /* scope: __dot42__ */
  111. {
  112. /// <summary>
  113. /// <para>Implement the Parcelable interface </para>
  114. /// </summary>
  115. /// <java-name>
  116. /// CREATOR
  117. /// </java-name>
  118. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  119. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pGroup> CREATOR;
  120. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  121. public WifiP2pGroup() /* MethodBuilder.Create */
  122. {
  123. }
  124. /// <summary>
  125. /// <para>copy constructor </para>
  126. /// </summary>
  127. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pGroup;)V", AccessFlags = 1)]
  128. public WifiP2pGroup(global::Android.Net.Wifi.P2p.WifiP2pGroup source) /* MethodBuilder.Create */
  129. {
  130. }
  131. /// <summary>
  132. /// <para>Get the network name (SSID) of the group. Legacy Wi-Fi clients will discover the p2p group using the network name. </para>
  133. /// </summary>
  134. /// <java-name>
  135. /// getNetworkName
  136. /// </java-name>
  137. [Dot42.DexImport("getNetworkName", "()Ljava/lang/String;", AccessFlags = 1)]
  138. public virtual string GetNetworkName() /* MethodBuilder.Create */
  139. {
  140. return default(string);
  141. }
  142. /// <summary>
  143. /// <para>Check whether this device is the group owner of the created p2p group </para>
  144. /// </summary>
  145. /// <java-name>
  146. /// isGroupOwner
  147. /// </java-name>
  148. [Dot42.DexImport("isGroupOwner", "()Z", AccessFlags = 1)]
  149. public virtual bool IsGroupOwner() /* MethodBuilder.Create */
  150. {
  151. return default(bool);
  152. }
  153. /// <summary>
  154. /// <para>Get the details of the group owner as a WifiP2pDevice object </para>
  155. /// </summary>
  156. /// <java-name>
  157. /// getOwner
  158. /// </java-name>
  159. [Dot42.DexImport("getOwner", "()Landroid/net/wifi/p2p/WifiP2pDevice;", AccessFlags = 1)]
  160. public virtual global::Android.Net.Wifi.P2p.WifiP2pDevice GetOwner() /* MethodBuilder.Create */
  161. {
  162. return default(global::Android.Net.Wifi.P2p.WifiP2pDevice);
  163. }
  164. /// <summary>
  165. /// <para>Get the list of clients currently part of the p2p group </para>
  166. /// </summary>
  167. /// <java-name>
  168. /// getClientList
  169. /// </java-name>
  170. [Dot42.DexImport("getClientList", "()Ljava/util/Collection;", AccessFlags = 1, Signature = "()Ljava/util/Collection<Landroid/net/wifi/p2p/WifiP2pDevice;>;")]
  171. public virtual global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice> GetClientList() /* MethodBuilder.Create */
  172. {
  173. return default(global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice>);
  174. }
  175. /// <summary>
  176. /// <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>
  177. /// </summary>
  178. /// <java-name>
  179. /// getPassphrase
  180. /// </java-name>
  181. [Dot42.DexImport("getPassphrase", "()Ljava/lang/String;", AccessFlags = 1)]
  182. public virtual string GetPassphrase() /* MethodBuilder.Create */
  183. {
  184. return default(string);
  185. }
  186. /// <summary>
  187. /// <para>Get the interface name on which the group is created </para>
  188. /// </summary>
  189. /// <java-name>
  190. /// getInterface
  191. /// </java-name>
  192. [Dot42.DexImport("getInterface", "()Ljava/lang/String;", AccessFlags = 1)]
  193. public virtual string GetInterface() /* MethodBuilder.Create */
  194. {
  195. return default(string);
  196. }
  197. /// <java-name>
  198. /// toString
  199. /// </java-name>
  200. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  201. public override string ToString() /* MethodBuilder.Create */
  202. {
  203. return default(string);
  204. }
  205. /// <summary>
  206. /// <para>Implement the Parcelable interface </para>
  207. /// </summary>
  208. /// <java-name>
  209. /// describeContents
  210. /// </java-name>
  211. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  212. public virtual int DescribeContents() /* MethodBuilder.Create */
  213. {
  214. return default(int);
  215. }
  216. /// <summary>
  217. /// <para>Implement the Parcelable interface </para>
  218. /// </summary>
  219. /// <java-name>
  220. /// writeToParcel
  221. /// </java-name>
  222. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  223. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  224. {
  225. }
  226. /// <summary>
  227. /// <para>Get the network name (SSID) of the group. Legacy Wi-Fi clients will discover the p2p group using the network name. </para>
  228. /// </summary>
  229. /// <java-name>
  230. /// getNetworkName
  231. /// </java-name>
  232. public string NetworkName
  233. {
  234. [Dot42.DexImport("getNetworkName", "()Ljava/lang/String;", AccessFlags = 1)]
  235. get{ return GetNetworkName(); }
  236. }
  237. /// <summary>
  238. /// <para>Get the details of the group owner as a WifiP2pDevice object </para>
  239. /// </summary>
  240. /// <java-name>
  241. /// getOwner
  242. /// </java-name>
  243. public global::Android.Net.Wifi.P2p.WifiP2pDevice Owner
  244. {
  245. [Dot42.DexImport("getOwner", "()Landroid/net/wifi/p2p/WifiP2pDevice;", AccessFlags = 1)]
  246. get{ return GetOwner(); }
  247. }
  248. /// <summary>
  249. /// <para>Get the list of clients currently part of the p2p group </para>
  250. /// </summary>
  251. /// <java-name>
  252. /// getClientList
  253. /// </java-name>
  254. public global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice> ClientList
  255. {
  256. [Dot42.DexImport("getClientList", "()Ljava/util/Collection;", AccessFlags = 1, Signature = "()Ljava/util/Collection<Landroid/net/wifi/p2p/WifiP2pDevice;>;")]
  257. get{ return GetClientList(); }
  258. }
  259. /// <summary>
  260. /// <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>
  261. /// </summary>
  262. /// <java-name>
  263. /// getPassphrase
  264. /// </java-name>
  265. public string Passphrase
  266. {
  267. [Dot42.DexImport("getPassphrase", "()Ljava/lang/String;", AccessFlags = 1)]
  268. get{ return GetPassphrase(); }
  269. }
  270. /// <summary>
  271. /// <para>Get the interface name on which the group is created </para>
  272. /// </summary>
  273. /// <java-name>
  274. /// getInterface
  275. /// </java-name>
  276. public string Interface
  277. {
  278. [Dot42.DexImport("getInterface", "()Ljava/lang/String;", AccessFlags = 1)]
  279. get{ return GetInterface(); }
  280. }
  281. }
  282. /// <summary>
  283. /// <para>A class representing a Wi-Fi P2p configuration for setting up a connection</para><para>{<para>WifiP2pManager} </para></para>
  284. /// </summary>
  285. /// <java-name>
  286. /// android/net/wifi/p2p/WifiP2pConfig
  287. /// </java-name>
  288. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pConfig", AccessFlags = 33)]
  289. public partial class WifiP2pConfig : global::Android.Os.IParcelable
  290. /* scope: __dot42__ */
  291. {
  292. /// <summary>
  293. /// <para>The device MAC address uniquely identifies a Wi-Fi p2p device </para>
  294. /// </summary>
  295. /// <java-name>
  296. /// deviceAddress
  297. /// </java-name>
  298. [Dot42.DexImport("deviceAddress", "Ljava/lang/String;", AccessFlags = 1)]
  299. public string DeviceAddress;
  300. /// <summary>
  301. /// <para>Wi-Fi Protected Setup information </para>
  302. /// </summary>
  303. /// <java-name>
  304. /// wps
  305. /// </java-name>
  306. [Dot42.DexImport("wps", "Landroid/net/wifi/WpsInfo;", AccessFlags = 1)]
  307. public global::Android.Net.Wifi.WpsInfo Wps;
  308. /// <summary>
  309. /// <para>This is an integer value between 0 and 15 where 0 indicates the least inclination to be a group owner and 15 indicates the highest inclination to be a group owner.</para><para>A value of -1 indicates the system can choose an appropriate value. </para>
  310. /// </summary>
  311. /// <java-name>
  312. /// groupOwnerIntent
  313. /// </java-name>
  314. [Dot42.DexImport("groupOwnerIntent", "I", AccessFlags = 1)]
  315. public int GroupOwnerIntent;
  316. /// <summary>
  317. /// <para>Implement the Parcelable interface </para>
  318. /// </summary>
  319. /// <java-name>
  320. /// CREATOR
  321. /// </java-name>
  322. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  323. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pConfig> CREATOR;
  324. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  325. public WifiP2pConfig() /* MethodBuilder.Create */
  326. {
  327. }
  328. /// <summary>
  329. /// <para>copy constructor </para>
  330. /// </summary>
  331. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pConfig;)V", AccessFlags = 1)]
  332. public WifiP2pConfig(global::Android.Net.Wifi.P2p.WifiP2pConfig source) /* MethodBuilder.Create */
  333. {
  334. }
  335. /// <java-name>
  336. /// toString
  337. /// </java-name>
  338. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  339. public override string ToString() /* MethodBuilder.Create */
  340. {
  341. return default(string);
  342. }
  343. /// <summary>
  344. /// <para>Implement the Parcelable interface </para>
  345. /// </summary>
  346. /// <java-name>
  347. /// describeContents
  348. /// </java-name>
  349. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  350. public virtual int DescribeContents() /* MethodBuilder.Create */
  351. {
  352. return default(int);
  353. }
  354. /// <summary>
  355. /// <para>Implement the Parcelable interface </para>
  356. /// </summary>
  357. /// <java-name>
  358. /// writeToParcel
  359. /// </java-name>
  360. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  361. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  362. {
  363. }
  364. }
  365. /// <summary>
  366. /// <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>
  367. /// </summary>
  368. /// <java-name>
  369. /// android/net/wifi/p2p/WifiP2pManager
  370. /// </java-name>
  371. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager", AccessFlags = 33)]
  372. public partial class WifiP2pManager
  373. /* scope: __dot42__ */
  374. {
  375. /// <summary>
  376. /// <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>
  377. /// </summary>
  378. /// <java-name>
  379. /// WIFI_P2P_STATE_CHANGED_ACTION
  380. /// </java-name>
  381. [Dot42.DexImport("WIFI_P2P_STATE_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  382. public const string WIFI_P2P_STATE_CHANGED_ACTION = "android.net.wifi.p2p.STATE_CHANGED";
  383. /// <summary>
  384. /// <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>
  385. /// </summary>
  386. /// <java-name>
  387. /// EXTRA_WIFI_STATE
  388. /// </java-name>
  389. [Dot42.DexImport("EXTRA_WIFI_STATE", "Ljava/lang/String;", AccessFlags = 25)]
  390. public const string EXTRA_WIFI_STATE = "wifi_p2p_state";
  391. /// <summary>
  392. /// <para>Wi-Fi p2p is disabled.</para><para><para>WIFI_P2P_STATE_CHANGED_ACTION </para></para>
  393. /// </summary>
  394. /// <java-name>
  395. /// WIFI_P2P_STATE_DISABLED
  396. /// </java-name>
  397. [Dot42.DexImport("WIFI_P2P_STATE_DISABLED", "I", AccessFlags = 25)]
  398. public const int WIFI_P2P_STATE_DISABLED = 1;
  399. /// <summary>
  400. /// <para>Wi-Fi p2p is enabled.</para><para><para>WIFI_P2P_STATE_CHANGED_ACTION </para></para>
  401. /// </summary>
  402. /// <java-name>
  403. /// WIFI_P2P_STATE_ENABLED
  404. /// </java-name>
  405. [Dot42.DexImport("WIFI_P2P_STATE_ENABLED", "I", AccessFlags = 25)]
  406. public const int WIFI_P2P_STATE_ENABLED = 2;
  407. /// <summary>
  408. /// <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>
  409. /// </summary>
  410. /// <java-name>
  411. /// WIFI_P2P_CONNECTION_CHANGED_ACTION
  412. /// </java-name>
  413. [Dot42.DexImport("WIFI_P2P_CONNECTION_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  414. public const string WIFI_P2P_CONNECTION_CHANGED_ACTION = "android.net.wifi.p2p.CONNECTION_STATE_CHANGE";
  415. /// <summary>
  416. /// <para>The lookup key for a android.net.wifi.p2p.WifiP2pInfo object Retrieve with android.content.Intent#getParcelableExtra(String). </para>
  417. /// </summary>
  418. /// <java-name>
  419. /// EXTRA_WIFI_P2P_INFO
  420. /// </java-name>
  421. [Dot42.DexImport("EXTRA_WIFI_P2P_INFO", "Ljava/lang/String;", AccessFlags = 25)]
  422. public const string EXTRA_WIFI_P2P_INFO = "wifiP2pInfo";
  423. /// <summary>
  424. /// <para>The lookup key for a android.net.NetworkInfo object associated with the p2p network. Retrieve with android.content.Intent#getParcelableExtra(String). </para>
  425. /// </summary>
  426. /// <java-name>
  427. /// EXTRA_NETWORK_INFO
  428. /// </java-name>
  429. [Dot42.DexImport("EXTRA_NETWORK_INFO", "Ljava/lang/String;", AccessFlags = 25)]
  430. public const string EXTRA_NETWORK_INFO = "networkInfo";
  431. /// <summary>
  432. /// <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>
  433. /// </summary>
  434. /// <java-name>
  435. /// WIFI_P2P_PEERS_CHANGED_ACTION
  436. /// </java-name>
  437. [Dot42.DexImport("WIFI_P2P_PEERS_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  438. public const string WIFI_P2P_PEERS_CHANGED_ACTION = "android.net.wifi.p2p.PEERS_CHANGED";
  439. /// <summary>
  440. /// <para>Broadcast intent action indicating that this device details have changed. </para>
  441. /// </summary>
  442. /// <java-name>
  443. /// WIFI_P2P_THIS_DEVICE_CHANGED_ACTION
  444. /// </java-name>
  445. [Dot42.DexImport("WIFI_P2P_THIS_DEVICE_CHANGED_ACTION", "Ljava/lang/String;", AccessFlags = 25)]
  446. public const string WIFI_P2P_THIS_DEVICE_CHANGED_ACTION = "android.net.wifi.p2p.THIS_DEVICE_CHANGED";
  447. /// <summary>
  448. /// <para>The lookup key for a android.net.wifi.p2p.WifiP2pDevice object Retrieve with android.content.Intent#getParcelableExtra(String). </para>
  449. /// </summary>
  450. /// <java-name>
  451. /// EXTRA_WIFI_P2P_DEVICE
  452. /// </java-name>
  453. [Dot42.DexImport("EXTRA_WIFI_P2P_DEVICE", "Ljava/lang/String;", AccessFlags = 25)]
  454. public const string EXTRA_WIFI_P2P_DEVICE = "wifiP2pDevice";
  455. /// <summary>
  456. /// <para>Passed with ActionListener#onFailure. Indicates that the operation failed due to an internal error. </para>
  457. /// </summary>
  458. /// <java-name>
  459. /// ERROR
  460. /// </java-name>
  461. [Dot42.DexImport("ERROR", "I", AccessFlags = 25)]
  462. public const int ERROR = 0;
  463. /// <summary>
  464. /// <para>Passed with ActionListener#onFailure. Indicates that the operation failed because p2p is unsupported on the device. </para>
  465. /// </summary>
  466. /// <java-name>
  467. /// P2P_UNSUPPORTED
  468. /// </java-name>
  469. [Dot42.DexImport("P2P_UNSUPPORTED", "I", AccessFlags = 25)]
  470. public const int P2P_UNSUPPORTED = 1;
  471. /// <summary>
  472. /// <para>Passed with ActionListener#onFailure. Indicates that the operation failed because the framework is busy and unable to service the request </para>
  473. /// </summary>
  474. /// <java-name>
  475. /// BUSY
  476. /// </java-name>
  477. [Dot42.DexImport("BUSY", "I", AccessFlags = 25)]
  478. public const int BUSY = 2;
  479. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  480. internal WifiP2pManager() /* MethodBuilder.Create */
  481. {
  482. }
  483. /// <summary>
  484. /// <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>
  485. /// </summary>
  486. /// <returns>
  487. /// <para>Channel instance that is necessary for performing any further p2p operations </para>
  488. /// </returns>
  489. /// <java-name>
  490. /// initialize
  491. /// </java-name>
  492. [Dot42.DexImport("initialize", "(Landroid/content/Context;Landroid/os/Looper;Landroid/net/wifi/p2p/WifiP2pManager" +
  493. "$ChannelListener;)Landroid/net/wifi/p2p/WifiP2pManager$Channel;", AccessFlags = 1)]
  494. 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 */
  495. {
  496. return default(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel);
  497. }
  498. /// <summary>
  499. /// <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>
  500. /// </summary>
  501. /// <java-name>
  502. /// discoverPeers
  503. /// </java-name>
  504. [Dot42.DexImport("discoverPeers", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  505. "r$ActionListener;)V", AccessFlags = 1)]
  506. public virtual void DiscoverPeers(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  507. {
  508. }
  509. /// <summary>
  510. /// <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>
  511. /// </summary>
  512. /// <java-name>
  513. /// connect
  514. /// </java-name>
  515. [Dot42.DexImport("connect", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pConfig" +
  516. ";Landroid/net/wifi/p2p/WifiP2pManager$ActionListener;)V", AccessFlags = 1)]
  517. 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 */
  518. {
  519. }
  520. /// <summary>
  521. /// <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>
  522. /// </summary>
  523. /// <java-name>
  524. /// cancelConnect
  525. /// </java-name>
  526. [Dot42.DexImport("cancelConnect", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  527. "r$ActionListener;)V", AccessFlags = 1)]
  528. public virtual void CancelConnect(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  529. {
  530. }
  531. /// <summary>
  532. /// <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>
  533. /// </summary>
  534. /// <java-name>
  535. /// createGroup
  536. /// </java-name>
  537. [Dot42.DexImport("createGroup", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  538. "r$ActionListener;)V", AccessFlags = 1)]
  539. public virtual void CreateGroup(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  540. {
  541. }
  542. /// <summary>
  543. /// <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>
  544. /// </summary>
  545. /// <java-name>
  546. /// removeGroup
  547. /// </java-name>
  548. [Dot42.DexImport("removeGroup", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  549. "r$ActionListener;)V", AccessFlags = 1)]
  550. public virtual void RemoveGroup(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IActionListener listener) /* MethodBuilder.Create */
  551. {
  552. }
  553. /// <summary>
  554. /// <para>Request the current list of peers.</para><para></para>
  555. /// </summary>
  556. /// <java-name>
  557. /// requestPeers
  558. /// </java-name>
  559. [Dot42.DexImport("requestPeers", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  560. "r$PeerListListener;)V", AccessFlags = 1)]
  561. public virtual void RequestPeers(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IPeerListListener listener) /* MethodBuilder.Create */
  562. {
  563. }
  564. /// <summary>
  565. /// <para>Request device connection info.</para><para></para>
  566. /// </summary>
  567. /// <java-name>
  568. /// requestConnectionInfo
  569. /// </java-name>
  570. [Dot42.DexImport("requestConnectionInfo", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  571. "r$ConnectionInfoListener;)V", AccessFlags = 1)]
  572. public virtual void RequestConnectionInfo(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IConnectionInfoListener listener) /* MethodBuilder.Create */
  573. {
  574. }
  575. /// <summary>
  576. /// <para>Request p2p group info.</para><para></para>
  577. /// </summary>
  578. /// <java-name>
  579. /// requestGroupInfo
  580. /// </java-name>
  581. [Dot42.DexImport("requestGroupInfo", "(Landroid/net/wifi/p2p/WifiP2pManager$Channel;Landroid/net/wifi/p2p/WifiP2pManage" +
  582. "r$GroupInfoListener;)V", AccessFlags = 1)]
  583. public virtual void RequestGroupInfo(global::Android.Net.Wifi.P2p.WifiP2pManager.Channel c, global::Android.Net.Wifi.P2p.WifiP2pManager.IGroupInfoListener listener) /* MethodBuilder.Create */
  584. {
  585. }
  586. /// <summary>
  587. /// <para>A channel that connects the application to the Wifi p2p framework. Most p2p operations require a Channel as an argument. An instance of Channel is obtained by doing a call on initialize </para>
  588. /// </summary>
  589. /// <java-name>
  590. /// android/net/wifi/p2p/WifiP2pManager$Channel
  591. /// </java-name>
  592. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager$Channel", AccessFlags = 9)]
  593. public partial class Channel
  594. /* scope: __dot42__ */
  595. {
  596. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  597. internal Channel() /* MethodBuilder.Create */
  598. {
  599. }
  600. }
  601. /// <summary>
  602. /// <para>Interface for callback invocation when group info is available </para>
  603. /// </summary>
  604. /// <java-name>
  605. /// android/net/wifi/p2p/WifiP2pManager$GroupInfoListener
  606. /// </java-name>
  607. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager$GroupInfoListener", AccessFlags = 1545)]
  608. public partial interface IGroupInfoListener
  609. /* scope: __dot42__ */
  610. {
  611. /// <summary>
  612. /// <para>The requested p2p group info is available </para>
  613. /// </summary>
  614. /// <java-name>
  615. /// onGroupInfoAvailable
  616. /// </java-name>
  617. [Dot42.DexImport("onGroupInfoAvailable", "(Landroid/net/wifi/p2p/WifiP2pGroup;)V", AccessFlags = 1025)]
  618. void OnGroupInfoAvailable(global::Android.Net.Wifi.P2p.WifiP2pGroup group) /* MethodBuilder.Create */ ;
  619. }
  620. /// <summary>
  621. /// <para>Interface for callback invocation when connection info is available </para>
  622. /// </summary>
  623. /// <java-name>
  624. /// android/net/wifi/p2p/WifiP2pManager$ConnectionInfoListener
  625. /// </java-name>
  626. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager$ConnectionInfoListener", AccessFlags = 1545)]
  627. public partial interface IConnectionInfoListener
  628. /* scope: __dot42__ */
  629. {
  630. /// <summary>
  631. /// <para>The requested connection info is available </para>
  632. /// </summary>
  633. /// <java-name>
  634. /// onConnectionInfoAvailable
  635. /// </java-name>
  636. [Dot42.DexImport("onConnectionInfoAvailable", "(Landroid/net/wifi/p2p/WifiP2pInfo;)V", AccessFlags = 1025)]
  637. void OnConnectionInfoAvailable(global::Android.Net.Wifi.P2p.WifiP2pInfo info) /* MethodBuilder.Create */ ;
  638. }
  639. /// <summary>
  640. /// <para>Interface for callback invocation when peer list is available </para>
  641. /// </summary>
  642. /// <java-name>
  643. /// android/net/wifi/p2p/WifiP2pManager$PeerListListener
  644. /// </java-name>
  645. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager$PeerListListener", AccessFlags = 1545)]
  646. public partial interface IPeerListListener
  647. /* scope: __dot42__ */
  648. {
  649. /// <summary>
  650. /// <para>The requested peer list is available </para>
  651. /// </summary>
  652. /// <java-name>
  653. /// onPeersAvailable
  654. /// </java-name>
  655. [Dot42.DexImport("onPeersAvailable", "(Landroid/net/wifi/p2p/WifiP2pDeviceList;)V", AccessFlags = 1025)]
  656. void OnPeersAvailable(global::Android.Net.Wifi.P2p.WifiP2pDeviceList peers) /* MethodBuilder.Create */ ;
  657. }
  658. /// <summary>
  659. /// <para>Interface for callback invocation on an application action </para>
  660. /// </summary>
  661. /// <java-name>
  662. /// android/net/wifi/p2p/WifiP2pManager$ActionListener
  663. /// </java-name>
  664. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager$ActionListener", AccessFlags = 1545)]
  665. public partial interface IActionListener
  666. /* scope: __dot42__ */
  667. {
  668. /// <summary>
  669. /// <para>The operation succeeded </para>
  670. /// </summary>
  671. /// <java-name>
  672. /// onSuccess
  673. /// </java-name>
  674. [Dot42.DexImport("onSuccess", "()V", AccessFlags = 1025)]
  675. void OnSuccess() /* MethodBuilder.Create */ ;
  676. /// <summary>
  677. /// <para>The operation failed </para>
  678. /// </summary>
  679. /// <java-name>
  680. /// onFailure
  681. /// </java-name>
  682. [Dot42.DexImport("onFailure", "(I)V", AccessFlags = 1025)]
  683. void OnFailure(int reason) /* MethodBuilder.Create */ ;
  684. }
  685. /// <summary>
  686. /// <para>Interface for callback invocation when framework channel is lost </para>
  687. /// </summary>
  688. /// <java-name>
  689. /// android/net/wifi/p2p/WifiP2pManager$ChannelListener
  690. /// </java-name>
  691. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pManager$ChannelListener", AccessFlags = 1545)]
  692. public partial interface IChannelListener
  693. /* scope: __dot42__ */
  694. {
  695. /// <summary>
  696. /// <para>The channel to the framework has been disconnected. Application could try re-initializing using initialize </para>
  697. /// </summary>
  698. /// <java-name>
  699. /// onChannelDisconnected
  700. /// </java-name>
  701. [Dot42.DexImport("onChannelDisconnected", "()V", AccessFlags = 1025)]
  702. void OnChannelDisconnected() /* MethodBuilder.Create */ ;
  703. }
  704. }
  705. /// <summary>
  706. /// <para>A class representing a Wi-Fi P2p device list.</para><para>Note that the operations are not thread safe. {<para>WifiP2pManager} </para></para>
  707. /// </summary>
  708. /// <java-name>
  709. /// android/net/wifi/p2p/WifiP2pDeviceList
  710. /// </java-name>
  711. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pDeviceList", AccessFlags = 33)]
  712. public partial class WifiP2pDeviceList : global::Android.Os.IParcelable
  713. /* scope: __dot42__ */
  714. {
  715. /// <summary>
  716. /// <para>Implement the Parcelable interface </para>
  717. /// </summary>
  718. /// <java-name>
  719. /// CREATOR
  720. /// </java-name>
  721. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  722. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pDeviceList> CREATOR;
  723. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  724. public WifiP2pDeviceList() /* MethodBuilder.Create */
  725. {
  726. }
  727. /// <summary>
  728. /// <para>copy constructor </para>
  729. /// </summary>
  730. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pDeviceList;)V", AccessFlags = 1)]
  731. public WifiP2pDeviceList(global::Android.Net.Wifi.P2p.WifiP2pDeviceList source) /* MethodBuilder.Create */
  732. {
  733. }
  734. /// <summary>
  735. /// <para>Get the list of devices </para>
  736. /// </summary>
  737. /// <java-name>
  738. /// getDeviceList
  739. /// </java-name>
  740. [Dot42.DexImport("getDeviceList", "()Ljava/util/Collection;", AccessFlags = 1, Signature = "()Ljava/util/Collection<Landroid/net/wifi/p2p/WifiP2pDevice;>;")]
  741. public virtual global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice> GetDeviceList() /* MethodBuilder.Create */
  742. {
  743. return default(global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice>);
  744. }
  745. /// <java-name>
  746. /// toString
  747. /// </java-name>
  748. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  749. public override string ToString() /* MethodBuilder.Create */
  750. {
  751. return default(string);
  752. }
  753. /// <summary>
  754. /// <para>Implement the Parcelable interface </para>
  755. /// </summary>
  756. /// <java-name>
  757. /// describeContents
  758. /// </java-name>
  759. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  760. public virtual int DescribeContents() /* MethodBuilder.Create */
  761. {
  762. return default(int);
  763. }
  764. /// <summary>
  765. /// <para>Implement the Parcelable interface </para>
  766. /// </summary>
  767. /// <java-name>
  768. /// writeToParcel
  769. /// </java-name>
  770. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  771. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  772. {
  773. }
  774. /// <summary>
  775. /// <para>Get the list of devices </para>
  776. /// </summary>
  777. /// <java-name>
  778. /// getDeviceList
  779. /// </java-name>
  780. public global::Java.Util.ICollection<global::Android.Net.Wifi.P2p.WifiP2pDevice> DeviceList
  781. {
  782. [Dot42.DexImport("getDeviceList", "()Ljava/util/Collection;", AccessFlags = 1, Signature = "()Ljava/util/Collection<Landroid/net/wifi/p2p/WifiP2pDevice;>;")]
  783. get{ return GetDeviceList(); }
  784. }
  785. }
  786. /// <summary>
  787. /// <para>A class representing a Wi-Fi p2p device</para><para>Note that the operations are not thread safe {<para>WifiP2pManager} </para></para>
  788. /// </summary>
  789. /// <java-name>
  790. /// android/net/wifi/p2p/WifiP2pDevice
  791. /// </java-name>
  792. [Dot42.DexImport("android/net/wifi/p2p/WifiP2pDevice", AccessFlags = 33)]
  793. public partial class WifiP2pDevice : global::Android.Os.IParcelable
  794. /* scope: __dot42__ */
  795. {
  796. /// <summary>
  797. /// <para>The device name is a user friendly string to identify a Wi-Fi p2p device </para>
  798. /// </summary>
  799. /// <java-name>
  800. /// deviceName
  801. /// </java-name>
  802. [Dot42.DexImport("deviceName", "Ljava/lang/String;", AccessFlags = 1)]
  803. public string DeviceName;
  804. /// <summary>
  805. /// <para>The device MAC address uniquely identifies a Wi-Fi p2p device </para>
  806. /// </summary>
  807. /// <java-name>
  808. /// deviceAddress
  809. /// </java-name>
  810. [Dot42.DexImport("deviceAddress", "Ljava/lang/String;", AccessFlags = 1)]
  811. public string DeviceAddress;
  812. /// <summary>
  813. /// <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>
  814. /// </summary>
  815. /// <java-name>
  816. /// primaryDeviceType
  817. /// </java-name>
  818. [Dot42.DexImport("primaryDeviceType", "Ljava/lang/String;", AccessFlags = 1)]
  819. public string PrimaryDeviceType;
  820. /// <summary>
  821. /// <para>Secondary device type is an optional attribute that can be provided by a device in addition to the primary device type. </para>
  822. /// </summary>
  823. /// <java-name>
  824. /// secondaryDeviceType
  825. /// </java-name>
  826. [Dot42.DexImport("secondaryDeviceType", "Ljava/lang/String;", AccessFlags = 1)]
  827. public string SecondaryDeviceType;
  828. /// <java-name>
  829. /// CONNECTED
  830. /// </java-name>
  831. [Dot42.DexImport("CONNECTED", "I", AccessFlags = 25)]
  832. public const int CONNECTED = 0;
  833. /// <java-name>
  834. /// INVITED
  835. /// </java-name>
  836. [Dot42.DexImport("INVITED", "I", AccessFlags = 25)]
  837. public const int INVITED = 1;
  838. /// <java-name>
  839. /// FAILED
  840. /// </java-name>
  841. [Dot42.DexImport("FAILED", "I", AccessFlags = 25)]
  842. public const int FAILED = 2;
  843. /// <java-name>
  844. /// AVAILABLE
  845. /// </java-name>
  846. [Dot42.DexImport("AVAILABLE", "I", AccessFlags = 25)]
  847. public const int AVAILABLE = 3;
  848. /// <java-name>
  849. /// UNAVAILABLE
  850. /// </java-name>
  851. [Dot42.DexImport("UNAVAILABLE", "I", AccessFlags = 25)]
  852. public const int UNAVAILABLE = 4;
  853. /// <summary>
  854. /// <para>Device connection status </para>
  855. /// </summary>
  856. /// <java-name>
  857. /// status
  858. /// </java-name>
  859. [Dot42.DexImport("status", "I", AccessFlags = 1)]
  860. public int Status;
  861. /// <summary>
  862. /// <para>Implement the Parcelable interface </para>
  863. /// </summary>
  864. /// <java-name>
  865. /// CREATOR
  866. /// </java-name>
  867. [Dot42.DexImport("CREATOR", "Landroid/os/Parcelable$Creator;", AccessFlags = 25)]
  868. public static readonly global::Android.Os.IParcelable_ICreator<global::Android.Net.Wifi.P2p.WifiP2pDevice> CREATOR;
  869. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  870. public WifiP2pDevice() /* MethodBuilder.Create */
  871. {
  872. }
  873. /// <summary>
  874. /// <para>copy constructor </para>
  875. /// </summary>
  876. [Dot42.DexImport("<init>", "(Landroid/net/wifi/p2p/WifiP2pDevice;)V", AccessFlags = 1)]
  877. public WifiP2pDevice(global::Android.Net.Wifi.P2p.WifiP2pDevice source) /* MethodBuilder.Create */
  878. {
  879. }
  880. /// <summary>
  881. /// <para>Returns true if WPS push button configuration is supported </para>
  882. /// </summary>
  883. /// <java-name>
  884. /// wpsPbcSupported
  885. /// </java-name>
  886. [Dot42.DexImport("wpsPbcSupported", "()Z", AccessFlags = 1)]
  887. public virtual bool WpsPbcSupported() /* MethodBuilder.Create */
  888. {
  889. return default(bool);
  890. }
  891. /// <summary>
  892. /// <para>Returns true if WPS keypad configuration is supported </para>
  893. /// </summary>
  894. /// <java-name>
  895. /// wpsKeypadSupported
  896. /// </java-name>
  897. [Dot42.DexImport("wpsKeypadSupported", "()Z", AccessFlags = 1)]
  898. public virtual bool WpsKeypadSupported() /* MethodBuilder.Create */
  899. {
  900. return default(bool);
  901. }
  902. /// <summary>
  903. /// <para>Returns true if WPS display configuration is supported </para>
  904. /// </summary>
  905. /// <java-name>
  906. /// wpsDisplaySupported
  907. /// </java-name>
  908. [Dot42.DexImport("wpsDisplaySupported", "()Z", AccessFlags = 1)]
  909. public virtual bool WpsDisplaySupported() /* MethodBuilder.Create */
  910. {
  911. return default(bool);
  912. }
  913. /// <summary>
  914. /// <para>Returns true if the device is capable of service discovery </para>
  915. /// </summary>
  916. /// <java-name>
  917. /// isServiceDiscoveryCapable
  918. /// </java-name>
  919. [Dot42.DexImport("isServiceDiscoveryCapable", "()Z", AccessFlags = 1)]
  920. public virtual bool IsServiceDiscoveryCapable() /* MethodBuilder.Create */
  921. {
  922. return default(bool);
  923. }
  924. /// <summary>
  925. /// <para>Returns true if the device is a group owner </para>
  926. /// </summary>
  927. /// <java-name>
  928. /// isGroupOwner
  929. /// </java-name>
  930. [Dot42.DexImport("isGroupOwner", "()Z", AccessFlags = 1)]
  931. public virtual bool IsGroupOwner() /* MethodBuilder.Create */
  932. {
  933. return default(bool);
  934. }
  935. /// <java-name>
  936. /// equals
  937. /// </java-name>
  938. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 1)]
  939. public override bool Equals(object obj) /* MethodBuilder.Create */
  940. {
  941. return default(bool);
  942. }
  943. /// <java-name>
  944. /// toString
  945. /// </java-name>
  946. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  947. public override string ToString() /* MethodBuilder.Create */
  948. {
  949. return default(string);
  950. }
  951. /// <summary>
  952. /// <para>Implement the Parcelable interface </para>
  953. /// </summary>
  954. /// <java-name>
  955. /// describeContents
  956. /// </java-name>
  957. [Dot42.DexImport("describeContents", "()I", AccessFlags = 1)]
  958. public virtual int DescribeContents() /* MethodBuilder.Create */
  959. {
  960. return default(int);
  961. }
  962. /// <summary>
  963. /// <para>Implement the Parcelable interface </para>
  964. /// </summary>
  965. /// <java-name>
  966. /// writeToParcel
  967. /// </java-name>
  968. [Dot42.DexImport("writeToParcel", "(Landroid/os/Parcel;I)V", AccessFlags = 1)]
  969. public virtual void WriteToParcel(global::Android.Os.Parcel dest, int flags) /* MethodBuilder.Create */
  970. {
  971. }
  972. }
  973. }