Xamarin.Insights.XML 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>Xamarin.Insights</name>
  5. </assembly>
  6. <members>
  7. <member name="M:Xamarin.InsightsCore.WebPoster45.TestPing(System.String)">
  8. <summary>
  9. Sends a ping request to the web api, we expect an X-Pong header back, if we don't get taht or the request fails assume no communication with the web api will work
  10. </summary>
  11. <param name="host"></param>
  12. <returns></returns>
  13. </member>
  14. <member name="M:Xamarin.InsightsCore.IOWriter.ReadRawDiskImage(System.String)">
  15. <summary>
  16. Reads an image from disk in a portable way - will not decompress compressed images
  17. </summary>
  18. <param name="fileName"></param>
  19. </member>
  20. <member name="M:Xamarin.InsightsCore.IOWriter.ReadDiskImage(System.String)">
  21. <summary>
  22. Reads an image from disk in a portable way - also will decompress images that require decompression
  23. </summary>
  24. <param name="fileName"></param>
  25. </member>
  26. <member name="T:Xamarin.InsightsCore.NetworkAvailability">
  27. <summary>
  28. One big state machine for network availability, with allowances for overrides.
  29. It is expected to have its NetworkState set by platform specific codebases signalling changes in their network state.
  30. </summary>
  31. </member>
  32. <member name="T:Xamarin.InsightsCore.States.FuzzyNetworkState">
  33. <summary>
  34. Basically every platform has a different idea of network states and trying to represent the specifics of each one is a pita.
  35. so lets just be fuzzy and use abstract concepts, trying to match the platform specific concepts to them as best we can
  36. </summary>
  37. </member>
  38. <member name="M:Xamarin.InsightsCore.WebApi.SubmitException(System.Exception,Xamarin.Insights.Severity,System.String)">
  39. <summary>
  40. Submits an exception to our api server, this runs through the crash api
  41. </summary>
  42. <param name="exception"></param>
  43. <param name="warningLevel"></param>
  44. <param name="Source"></param>
  45. <returns></returns>
  46. </member>
  47. <member name="M:Xamarin.InsightsCore.WebApi.SubmitExceptionAndSave(System.Exception,Xamarin.Insights.Severity,System.String)">
  48. <summary>
  49. Submits an exception to our api server, this runs through the crash api,
  50. in addition this will save the current state of the journal to disk
  51. this entire method will block. It is intended to be used when in an unhandled event handler
  52. </summary>
  53. <param name="exception"></param>
  54. <param name="warningLevel"></param>
  55. <param name="Source"></param>
  56. </member>
  57. <member name="T:Xamarin.ReportSeverity">
  58. <summary>
  59. Obsolete, use Xamarin.Insights.ReportSeverity instead
  60. </summary>
  61. </member>
  62. <member name="F:Xamarin.ReportSeverity.Warning">
  63. <summary>
  64. A Warning
  65. </summary>
  66. </member>
  67. <member name="F:Xamarin.ReportSeverity.Error">
  68. <summary>
  69. An Error
  70. </summary>
  71. </member>
  72. <member name="T:Xamarin.Insights">
  73. <summary>
  74. Xamarin.Insights
  75. </summary>
  76. </member>
  77. <member name="M:Xamarin.Insights.Initialize(System.String,System.String,System.String,System.String,System.Boolean)">
  78. <summary>
  79. This method initializes Insights and starts automatic monitoring systems, it is required to be called before any other API
  80. </summary>
  81. <param name="apiKey">The APIKey given to you by Insights, which can be found here: https://insights.xamarin.com/app/$YourAppNameGoesHere$/settings </param>
  82. <param name="versionIdentifier">The current version of your app, this should use Semantic Versioning</param>
  83. <param name="appIdentifier">An identifier that uniquely identifies your app, a unique string of some kind</param>
  84. <param name="cacheDirectoryOverride">An opetional paramater that allows you to specify a unique cache directory for insights to use</param>
  85. </member>
  86. <member name="M:Xamarin.Insights.PurgeAllPendingData">
  87. <summary>
  88. Attempts to purge all pending data, this may not actually send all data to the web service if networking is down or insights is unavailable.
  89. </summary>
  90. <returns></returns>
  91. </member>
  92. <member name="T:Xamarin.Insights.HasPendingCrashReportEventHandler">
  93. <summary>
  94. A delegate for the HasPendingCrashReportEventHandler event, you are expected to call Insights.PurgePendingCrashReports() in this method
  95. if you wish for Insights to synchronously send a crash report on startup, otherwise ignore this and insights will send the crash report
  96. in the background.
  97. </summary>
  98. <param name="sender"></param>
  99. <param name="isStartupCrash"></param>
  100. </member>
  101. <member name="E:Xamarin.Insights.HasPendingCrashReport">
  102. <summary>
  103. This event is fired when Insights detects a new pending crash report
  104. </summary>
  105. </member>
  106. <member name="F:Xamarin.Insights.DebugModeKey">
  107. <summary>
  108. Passing this key into <seealso cref="M:Xamarin.Insights.Initialize(System.String,System.String,System.String,System.String,System.Boolean)" /> will enable a silent debug mode in Insights.
  109. Insights will not track, catch exceptions or submit information of any kind.
  110. This is useful if you are trying to debug your application and want Insights to get out of the way.
  111. </summary>
  112. </member>
  113. <member name="P:Xamarin.Insights.IsInitialized">
  114. <summary>
  115. This paramater will return true if Initialize has been successfully called
  116. </summary>
  117. </member>
  118. <member name="T:Xamarin.Insights.CollectionTypes">
  119. <summary>
  120. </summary>
  121. </member>
  122. <member name="P:Xamarin.Insights.DisableCollectionTypes">
  123. <summary>
  124. This paramater allows you to disable certain collection types, they will not be reported to the Insights server.
  125. </summary>
  126. <example>
  127. Insights.DisableCollection = true; // Disables Insights automated behaviors
  128. Insights.DisableDataTransmission = true; // Disables data communication with the webapi
  129. Insights.DisableExceptionCatching = true; // Disables automatic unhandled exception catching
  130. Insights.DisableCollectionTypes = Insights.OSInfo; // Stops Insights from tracking OSInfo
  131. Insights.DisableCollectionTypes = Insights.Jailbroken; // Stops Insights from tracking HardwareInfo
  132. Insights.DisableCollectionTypes = Insights.NetworkInfo; // Stops Insights from tracking NetworkInfo
  133. //Can be combined
  134. Insights.DisableCollectionTypes = Insights.OSInfo | Insights.NetworkInfo; // Stops Insights from tracking OSInfo and NetworkInfo
  135. </example>
  136. </member>
  137. <member name="F:Xamarin.Insights.Traits.Avatar">
  138. <summary>
  139. URL corresponding to the location of the users avatar
  140. </summary>
  141. </member>
  142. <member name="F:Xamarin.Insights.Traits.DateOfBirth">
  143. <summary>
  144. Use Date.ToString('o'); to encode the users date of birth
  145. </summary>
  146. </member>
  147. <member name="F:Xamarin.Insights.Traits.CreatedAt">
  148. <summary>
  149. Use Date.ToString('o'); to encode the date the user created the account
  150. </summary>
  151. </member>
  152. <member name="P:Xamarin.Insights.DisableCollection">
  153. <summary>
  154. DisableCollection allows you to disable Insights at run time, it will not collect information, it will not submit
  155. information, any information it has collected will be preserved.
  156. Crash reporting is also disabled if this flag is set, use at your own risk.
  157. </summary>
  158. </member>
  159. <member name="P:Xamarin.Insights.DisableDataTransmission">
  160. <summary>
  161. DisableDataTransmission allows you to disable any use of data communication by Insights, when this value is set to True
  162. Insights will just gather data and not send any data.
  163. </summary>
  164. </member>
  165. <member name="P:Xamarin.Insights.DisableExceptionCatching">
  166. <summary>
  167. DisableExceptionCatching disables any automatic unhandled exception handling in Insights.
  168. Use this if you wish to catch exceptions yourself and .Report() them to insights at your leisure
  169. </summary>
  170. </member>
  171. <member name="P:Xamarin.Insights.ForceDataTransmission">
  172. <summary>
  173. Setting this property to true will force Insights to submit data to the server regardless of the network state
  174. </summary>
  175. </member>
  176. <member name="M:Xamarin.Insights.Identify(System.String,System.Collections.Generic.IDictionary{System.String,System.String})">
  177. <summary>
  178. Identify is used to identify your users with unique information, this also allows Insights to attach other reports
  179. to this user.
  180. </summary>
  181. <seealso cref="M:Xamarin.Insights.Identify(System.String,System.String,System.String)" />
  182. <param name="uid">
  183. The unique identifier for this user, this can be whatever string you like as long as it is unique for
  184. that user, using DeviceIDs and such is not recommended, those are only unique to devices
  185. </param>
  186. <param name="table">A Generic table of information you would like to associate with this user.</param>
  187. <example>
  188. This sample shows how to call the method with a table of data
  189. <code>
  190. var manyInfos = new Dictionary&lt;string, string&gt;{
  191. {"Email", "njpatel@catfacts.com"},
  192. {"CatTeethFact", "Cats have 30 teeth (12 incisors, 10 premolars, 4 canines, and 4 molars), while dogs have 42. Kittens have baby teeth, which are replaced by permanent teeth around the age of 7 months."}
  193. }
  194. Insights.Identify("YourUsersUniqueId", manyInfos);
  195. </code>
  196. </example>
  197. </member>
  198. <member name="M:Xamarin.Insights.Identify(System.String,System.String,System.String)">
  199. <summary>
  200. Identify is used to identify your users with unique information, this also allows Insights to attach other reports
  201. to this user.
  202. This method is a shorthand version of Identify(string, IDictionary) in that it essentially represents
  203. a table with one value
  204. </summary>
  205. <param name="uid">
  206. The unique identifier for this user, this can be whatever string you like as long as it is unique for
  207. that user, using DeviceIDs and such is not recommended, those are only unique to devices
  208. </param>
  209. <param name="key">The key representing a key/value storage type.</param>
  210. <param name="value">The value representing a key/value storage type.</param>
  211. <example>
  212. This sample shows how to call the <see cref="M:Xamarin.Insights.Identify(System.String,System.String,System.String)" /> method with a key/value.
  213. <code>
  214. Insights.Identify("YourUsersUniqueId", "Email", "njpatel@catfacts.com");
  215. </code>
  216. </example>
  217. </member>
  218. <member name="M:Xamarin.Insights.Track(System.String,System.Collections.Generic.IDictionary{System.String,System.String})">
  219. <summary>
  220. Track allows you to track usage of your application and add additional data to each event
  221. </summary>
  222. <param name="trackIdentifier">A unique name for this event</param>
  223. <param name="table">
  224. An optional key/value store representing additional data that you would like to attach to this
  225. event
  226. </param>
  227. </member>
  228. <member name="M:Xamarin.Insights.Track(System.String,System.String,System.String)">
  229. <summary>
  230. Track allows you to track usage of your application and add additional data to each event
  231. </summary>
  232. <param name="trackIdentifier">A unique name for this event</param>
  233. <param name="key">A trait for this track event, key value form of the Dictionary varient</param>
  234. <param name="value">Value for the given trait, key value form of the Dictionary varient</param>
  235. </member>
  236. <member name="M:Xamarin.Insights.TrackTime(System.String,System.Collections.Generic.IDictionary{System.String,System.String})">
  237. <summary>
  238. TrackTime allows you to track events that make take an amount of time to complete. For example measuring how long
  239. it takes to submit login information to a remote server.
  240. </summary>
  241. <param name="identifier">A unique identifier name for this event</param>
  242. <param name="table"></param>
  243. <returns>a handler object that allows you to start and stop the built in timer.</returns>
  244. <example>
  245. This shows how to use this method with a using keyword
  246. <code>
  247. using (var handle = Insights.TrackTime("TimeToLogin")) {
  248. await SubmitLoginInformation("myuserid", "mypassword");
  249. ... more code goes here ...
  250. }
  251. </code>
  252. If you do not wish to use the using keyword or want to track events in more complex scenarios you can use the Start
  253. and Stop methods on the handle object
  254. <code>
  255. var handle = Insights.TrackTime("TimeToLogin");
  256. handle.Start();
  257. await SubmitLoginInformation("myuserid", "mypassword");
  258. ... more code goes here ...
  259. handle.Stop();
  260. </code>
  261. </example>
  262. </member>
  263. <member name="M:Xamarin.Insights.TrackTime(System.String,System.String,System.String)">
  264. <summary>
  265. TrackTime allows you to track events that make take an amount of time to complete. For example measuring how long
  266. it takes to submit login information to a remote server.
  267. </summary>
  268. <param name="identifier">A unique identifer name for this event</param>
  269. <param name="key"></param>
  270. <param name="value"></param>
  271. <returns>a handler object that allows you to start and stop the built in timer.</returns>
  272. <example>
  273. This shows how to use this method with a using keyword
  274. <code>
  275. using (var handle = Insights.TrackTime("TimeToLogin")) {
  276. await SubmitLoginInformation("myuserid", "mypassword");
  277. ... more code goes here ...
  278. }
  279. </code>
  280. If you do not wish to use the using keyword or want to track events in more complex scenarios you can use the Start
  281. and Stop methods on the handle object
  282. <code>
  283. var handle = Insights.TrackTime("TimeToLogin");
  284. handle.Start();
  285. await SubmitLoginInformation("myuserid", "mypassword");
  286. ... more code goes here ...
  287. handle.Stop();
  288. </code>
  289. </example>
  290. </member>
  291. <member name="T:Xamarin.Insights.Severity">
  292. <summary>
  293. Describes the Severity of a Report
  294. </summary>
  295. </member>
  296. <member name="F:Xamarin.Insights.Severity.Warning">
  297. <summary>
  298. Warning Severity
  299. </summary>
  300. </member>
  301. <member name="F:Xamarin.Insights.Severity.Error">
  302. <summary>
  303. Error Severity, you are not expected to call this from client side code unless you have disabled unhandled exception handling.
  304. </summary>
  305. </member>
  306. <member name="F:Xamarin.Insights.Severity.Critical">
  307. <summary>
  308. Critical Severity
  309. </summary>
  310. </member>
  311. <member name="M:Xamarin.Insights.Report(System.Exception,Xamarin.Insights.Severity)">
  312. <summary>
  313. Report allows you to report exceptions to Insights when they are caught, this allows you to track exceptions
  314. without crashing.
  315. </summary>
  316. <param name="exception">an Exception data type, you can also attach extra data to the .Data paramater of the exception</param>
  317. <param name="warningLevel">A warning level for the given report, can be ReportSeverity.Warning or ReportSeverity.Error</param>
  318. <example>
  319. This sample shows how to call the Report method.
  320. <code>
  321. try {
  322. ExceptionThrowingFunction();
  323. }
  324. catch (Exception exception) {
  325. exception.Data["This is some extra data"] = "A cat's field of vision is about 200 degrees."
  326. Insights.Report(exception);
  327. }
  328. </code>
  329. </example>
  330. </member>
  331. <member name="M:Xamarin.Insights.Report(System.Exception,System.Collections.IDictionary,Xamarin.Insights.Severity)">
  332. <summary>
  333. An overload of Report, this allows you to specify extra data to be sent with the exception.
  334. </summary>
  335. <param name="exception">The Exception you want to report</param>
  336. <param name="extraData">A Dictionary containing key/values that you want to report along with the exception</param>
  337. <param name="warningLevel">A warning level for the given report, can be ReportSeverity.Warning or ReportSeverity.Error</param>
  338. </member>
  339. <member name="M:Xamarin.Insights.Report(System.Exception,System.String,System.String,Xamarin.Insights.Severity)">
  340. <summary>
  341. An overload of Report, this allows you to specify a single key/value pair of extra data to be sent with the exception
  342. </summary>
  343. <param name="exception">The Exception you want to report</param>
  344. <param name="warningLevel">A warning level for the given report, can be ReportSeverity.Warning or ReportSeverity.Error</param>
  345. <param name="key"></param>
  346. <param name="value"></param>
  347. </member>
  348. <member name="M:Xamarin.Insights.Save">
  349. <summary>
  350. Save is intended to be called when your process is being stopped. It informs Insights that the process will no longer be active and lets Insights save its state to disk.
  351. Insights auto detects most cases where this would happen, The intendted use case for this is if you are handling unhandled exceptions yourself, you will need to Insights.Save() after reporting your exceptions.
  352. </summary>
  353. <returns>Returns a task, it is recommended that you await this task.</returns>
  354. </member>
  355. <member name="M:Xamarin.Insights.PurgePendingCrashReports">
  356. <summary>
  357. Purges any pending crash reports. This is only ever intended to be used when Insights notifies you that there are pending crash reports.
  358. </summary>
  359. <returns>A Task that should be awaited until it has completed, signifying that the crash reports have been delivered to insights web.</returns>
  360. </member>
  361. <member name="T:Xamarin.ITrackHandle">
  362. <summary>
  363. Interface for TrackHandles, this not expected to be implimented by client side code
  364. </summary>
  365. </member>
  366. <member name="M:Xamarin.ITrackHandle.Start">
  367. <summary>
  368. Starts the TrackTime handle
  369. </summary>
  370. </member>
  371. <member name="M:Xamarin.ITrackHandle.Stop">
  372. <summary>
  373. Stops the TrackTime handle
  374. </summary>
  375. </member>
  376. <member name="P:Xamarin.ITrackHandle.Data">
  377. <summary>
  378. the key value traits list associated with this TrackTime event
  379. </summary>
  380. </member>
  381. </members>
  382. </doc>