/DriveThroughSafari.Touch/obj/iPhone/Ad-Hoc/mtouch-cache/registrar.m

https://bitbucket.org/blake_davidson/drivethroughsafari · Objective C · 1488 lines · 1433 code · 55 blank · 0 comment · 278 complexity · 81efeffcf94830d633ef1adf7c0c7841 MD5 · raw file

  1. #include <monotouch/monotouch.h>
  2. #include <objc/objc.h>
  3. #include <objc/runtime.h>
  4. #include <UIKit/UIKit.h>
  5. #include <CoreLocation/CoreLocation.h>
  6. #include <Foundation/Foundation.h>
  7. static MonoMethod *method_1 = NULL;
  8. void *
  9. native_to_managed_trampoline_MonoTouch_UIKit_UIBarButtonItem_Callback__ctor (id this, SEL sel)
  10. {
  11. void *arg_ptrs [0];
  12. MonoObject *mthis;
  13. if (mono_domain_get () == NULL)
  14. mono_jit_thread_attach (NULL);
  15. if (monotouch_try_get_nsobject (this))
  16. return this;
  17. if (!method_1)
  18. method_1 = get_method_for_selector ([this class], sel).method->method;
  19. int handle = (int) this;
  20. handle |= 1;
  21. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_1));
  22. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  23. mono_runtime_invoke (method_1, mthis, arg_ptrs, NULL);
  24. monotouch_create_managed_ref (this, mthis, true);
  25. void *params[2];
  26. params[0] = mthis;
  27. params[1] = &this;
  28. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  29. return this;
  30. }
  31. static MonoMethod *method_2 = NULL;
  32. void *
  33. native_to_managed_trampoline_MonoTouch_UIKit_UIBarButtonItem_Callback_Call (id this, SEL sel, id p0)
  34. {
  35. void *arg_ptrs [1];
  36. MonoObject *mthis;
  37. if (mono_domain_get () == NULL)
  38. mono_jit_thread_attach (NULL);
  39. if (!method_2)
  40. method_2 = get_method_for_selector ([this class], sel).method->method;
  41. mthis = NULL;
  42. if (this) {
  43. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_2)));
  44. }
  45. NSObject *nsobj0 = (NSObject *) p0;
  46. MonoObject *mobj0 = NULL;
  47. bool created0 = false;
  48. if (nsobj0) {
  49. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_2, 0), &created0);
  50. }
  51. arg_ptrs [0] = mobj0;
  52. mono_runtime_invoke (method_2, mthis, arg_ptrs, NULL);
  53. return NULL;
  54. }
  55. static MonoMethod *method_3 = NULL;
  56. void *
  57. native_to_managed_trampoline_MonoTouch_UIKit_UIControlEventProxy_Activated (id this, SEL sel)
  58. {
  59. void *arg_ptrs [0];
  60. MonoObject *mthis;
  61. if (mono_domain_get () == NULL)
  62. mono_jit_thread_attach (NULL);
  63. if (!method_3)
  64. method_3 = get_method_for_selector ([this class], sel).method->method;
  65. mthis = NULL;
  66. if (this) {
  67. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_3)));
  68. }
  69. mono_runtime_invoke (method_3, mthis, arg_ptrs, NULL);
  70. return NULL;
  71. }
  72. static MonoMethod *method_4 = NULL;
  73. void *
  74. native_to_managed_trampoline_MonoTouch_Foundation_NSAsyncActionDispatcher_Apply (id this, SEL sel)
  75. {
  76. void *arg_ptrs [0];
  77. MonoObject *mthis;
  78. if (mono_domain_get () == NULL)
  79. mono_jit_thread_attach (NULL);
  80. if (!method_4)
  81. method_4 = get_method_for_selector ([this class], sel).method->method;
  82. mthis = NULL;
  83. if (this) {
  84. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_4)));
  85. }
  86. mono_runtime_invoke (method_4, mthis, arg_ptrs, NULL);
  87. return NULL;
  88. }
  89. static MonoMethod *method_5 = NULL;
  90. void *
  91. native_to_managed_trampoline_MonoTouch_Foundation_NSActionDispatcher_Apply (id this, SEL sel)
  92. {
  93. void *arg_ptrs [0];
  94. MonoObject *mthis;
  95. if (mono_domain_get () == NULL)
  96. mono_jit_thread_attach (NULL);
  97. if (!method_5)
  98. method_5 = get_method_for_selector ([this class], sel).method->method;
  99. mthis = NULL;
  100. if (this) {
  101. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_5)));
  102. }
  103. mono_runtime_invoke (method_5, mthis, arg_ptrs, NULL);
  104. return NULL;
  105. }
  106. static MonoMethod *method_6 = NULL;
  107. void *
  108. native_to_managed_trampoline_MonoTouch_Foundation_NSObject_NSObject_Disposer__ctor (id this, SEL sel)
  109. {
  110. void *arg_ptrs [0];
  111. MonoObject *mthis;
  112. if (mono_domain_get () == NULL)
  113. mono_jit_thread_attach (NULL);
  114. if (monotouch_try_get_nsobject (this))
  115. return this;
  116. if (!method_6)
  117. method_6 = get_method_for_selector ([this class], sel).method->method;
  118. int handle = (int) this;
  119. handle |= 1;
  120. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_6));
  121. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  122. mono_runtime_invoke (method_6, mthis, arg_ptrs, NULL);
  123. monotouch_create_managed_ref (this, mthis, true);
  124. void *params[2];
  125. params[0] = mthis;
  126. params[1] = &this;
  127. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  128. return this;
  129. }
  130. static MonoMethod *method_7 = NULL;
  131. void *
  132. native_to_managed_trampoline_MonoTouch_Foundation_NSObject_NSObject_Disposer_Drain (id this, SEL sel, id p0)
  133. {
  134. void *arg_ptrs [1];
  135. if (mono_domain_get () == NULL)
  136. mono_jit_thread_attach (NULL);
  137. if (!method_7)
  138. method_7 = get_method_for_selector ([this class], sel).method->method;
  139. NSObject *nsobj0 = (NSObject *) p0;
  140. MonoObject *mobj0 = NULL;
  141. bool created0 = false;
  142. if (nsobj0) {
  143. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_7, 0), &created0);
  144. }
  145. arg_ptrs [0] = mobj0;
  146. mono_runtime_invoke (method_7, NULL, arg_ptrs, NULL);
  147. return NULL;
  148. }
  149. static MonoMethod *method_8 = NULL;
  150. void *
  151. native_to_managed_trampoline_MonoTouch_UIKit_UIPickerViewModel__ctor (id this, SEL sel)
  152. {
  153. void *arg_ptrs [0];
  154. MonoObject *mthis;
  155. if (mono_domain_get () == NULL)
  156. mono_jit_thread_attach (NULL);
  157. if (monotouch_try_get_nsobject (this))
  158. return this;
  159. if (!method_8)
  160. method_8 = get_method_for_selector ([this class], sel).method->method;
  161. int handle = (int) this;
  162. handle |= 1;
  163. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_8));
  164. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  165. mono_runtime_invoke (method_8, mthis, arg_ptrs, NULL);
  166. monotouch_create_managed_ref (this, mthis, true);
  167. void *params[2];
  168. params[0] = mthis;
  169. params[1] = &this;
  170. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  171. return this;
  172. }
  173. static MonoMethod *method_9 = NULL;
  174. void *
  175. native_to_managed_trampoline_MonoTouch_UIKit_UIGestureRecognizer_Token__ctor (id this, SEL sel)
  176. {
  177. void *arg_ptrs [0];
  178. MonoObject *mthis;
  179. if (mono_domain_get () == NULL)
  180. mono_jit_thread_attach (NULL);
  181. if (monotouch_try_get_nsobject (this))
  182. return this;
  183. if (!method_9)
  184. method_9 = get_method_for_selector ([this class], sel).method->method;
  185. int handle = (int) this;
  186. handle |= 1;
  187. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_9));
  188. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  189. mono_runtime_invoke (method_9, mthis, arg_ptrs, NULL);
  190. monotouch_create_managed_ref (this, mthis, true);
  191. void *params[2];
  192. params[0] = mthis;
  193. params[1] = &this;
  194. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  195. return this;
  196. }
  197. static MonoMethod *method_10 = NULL;
  198. void *
  199. native_to_managed_trampoline_MonoTouch_UIKit_UIImageStatusDispatcher_Callback (id this, SEL sel, void * p0, void * p1, void * p2)
  200. {
  201. void *arg_ptrs [3];
  202. MonoObject *mthis;
  203. if (mono_domain_get () == NULL)
  204. mono_jit_thread_attach (NULL);
  205. if (!method_10)
  206. method_10 = get_method_for_selector ([this class], sel).method->method;
  207. mthis = NULL;
  208. if (this) {
  209. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_10)));
  210. }
  211. void * a0 = p0;
  212. arg_ptrs [0] = &a0;
  213. void * a1 = p1;
  214. arg_ptrs [1] = &a1;
  215. void * a2 = p2;
  216. arg_ptrs [2] = &a2;
  217. mono_runtime_invoke (method_10, mthis, arg_ptrs, NULL);
  218. return NULL;
  219. }
  220. static MonoMethod *method_11 = NULL;
  221. void *
  222. native_to_managed_trampoline_MonoTouch_CoreLocation_CLLocationManagerDelegate__ctor (id this, SEL sel)
  223. {
  224. void *arg_ptrs [0];
  225. MonoObject *mthis;
  226. if (mono_domain_get () == NULL)
  227. mono_jit_thread_attach (NULL);
  228. if (monotouch_try_get_nsobject (this))
  229. return this;
  230. if (!method_11)
  231. method_11 = get_method_for_selector ([this class], sel).method->method;
  232. int handle = (int) this;
  233. handle |= 1;
  234. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_11));
  235. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  236. mono_runtime_invoke (method_11, mthis, arg_ptrs, NULL);
  237. monotouch_create_managed_ref (this, mthis, true);
  238. void *params[2];
  239. params[0] = mthis;
  240. params[1] = &this;
  241. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  242. return this;
  243. }
  244. static MonoMethod *method_12 = NULL;
  245. void *
  246. native_to_managed_trampoline_DriveThroughSafari_Touch_Controls_SingleRowData_get_Image (id this, SEL sel)
  247. {
  248. void *arg_ptrs [0];
  249. MonoObject *mthis;
  250. if (mono_domain_get () == NULL)
  251. mono_jit_thread_attach (NULL);
  252. if (!method_12)
  253. method_12 = get_method_for_selector ([this class], sel).method->method;
  254. mthis = NULL;
  255. if (this) {
  256. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_12)));
  257. }
  258. void* retval = (void *) mono_runtime_invoke (method_12, mthis, arg_ptrs, NULL);
  259. void * res;
  260. if (!retval) {
  261. res = NULL;
  262. } else {
  263. char *str = mono_string_to_utf8 ((MonoString *) retval);
  264. NSString *nsstr = [[NSString alloc] initWithUTF8String:str];
  265. [nsstr autorelease];
  266. mono_free (str);
  267. res = nsstr;
  268. }
  269. return res;
  270. }
  271. static MonoMethod *method_13 = NULL;
  272. void *
  273. native_to_managed_trampoline_DriveThroughSafari_Touch_Controls_SingleRowData_set_Image (id this, SEL sel, NSString * p0)
  274. {
  275. void *arg_ptrs [1];
  276. MonoObject *mthis;
  277. if (mono_domain_get () == NULL)
  278. mono_jit_thread_attach (NULL);
  279. if (!method_13)
  280. method_13 = get_method_for_selector ([this class], sel).method->method;
  281. mthis = NULL;
  282. if (this) {
  283. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_13)));
  284. }
  285. arg_ptrs [0] = p0 ? mono_string_new (mono_domain_get (), [p0 UTF8String]) : NULL;
  286. mono_runtime_invoke (method_13, mthis, arg_ptrs, NULL);
  287. return NULL;
  288. }
  289. static MonoMethod *method_14 = NULL;
  290. void *
  291. native_to_managed_trampoline_DriveThroughSafari_Touch_Controls_SingleRowData__ctor (id this, SEL sel)
  292. {
  293. void *arg_ptrs [0];
  294. MonoObject *mthis;
  295. if (mono_domain_get () == NULL)
  296. mono_jit_thread_attach (NULL);
  297. if (monotouch_try_get_nsobject (this))
  298. return this;
  299. if (!method_14)
  300. method_14 = get_method_for_selector ([this class], sel).method->method;
  301. int handle = (int) this;
  302. handle |= 1;
  303. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_14));
  304. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  305. mono_runtime_invoke (method_14, mthis, arg_ptrs, NULL);
  306. monotouch_create_managed_ref (this, mthis, true);
  307. void *params[2];
  308. params[0] = mthis;
  309. params[1] = &this;
  310. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  311. return this;
  312. }
  313. static MonoMethod *method_15 = NULL;
  314. void *
  315. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo_get_ImagePath (id this, SEL sel)
  316. {
  317. void *arg_ptrs [0];
  318. MonoObject *mthis;
  319. if (mono_domain_get () == NULL)
  320. mono_jit_thread_attach (NULL);
  321. if (!method_15)
  322. method_15 = get_method_for_selector ([this class], sel).method->method;
  323. mthis = NULL;
  324. if (this) {
  325. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_15)));
  326. }
  327. void* retval = (void *) mono_runtime_invoke (method_15, mthis, arg_ptrs, NULL);
  328. void * res;
  329. if (!retval) {
  330. res = NULL;
  331. } else {
  332. char *str = mono_string_to_utf8 ((MonoString *) retval);
  333. NSString *nsstr = [[NSString alloc] initWithUTF8String:str];
  334. [nsstr autorelease];
  335. mono_free (str);
  336. res = nsstr;
  337. }
  338. return res;
  339. }
  340. static MonoMethod *method_16 = NULL;
  341. void *
  342. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo_set_ImagePath (id this, SEL sel, NSString * p0)
  343. {
  344. void *arg_ptrs [1];
  345. MonoObject *mthis;
  346. if (mono_domain_get () == NULL)
  347. mono_jit_thread_attach (NULL);
  348. if (!method_16)
  349. method_16 = get_method_for_selector ([this class], sel).method->method;
  350. mthis = NULL;
  351. if (this) {
  352. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_16)));
  353. }
  354. arg_ptrs [0] = p0 ? mono_string_new (mono_domain_get (), [p0 UTF8String]) : NULL;
  355. mono_runtime_invoke (method_16, mthis, arg_ptrs, NULL);
  356. return NULL;
  357. }
  358. static MonoMethod *method_17 = NULL;
  359. void *
  360. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo_get_ThumbPath (id this, SEL sel)
  361. {
  362. void *arg_ptrs [0];
  363. MonoObject *mthis;
  364. if (mono_domain_get () == NULL)
  365. mono_jit_thread_attach (NULL);
  366. if (!method_17)
  367. method_17 = get_method_for_selector ([this class], sel).method->method;
  368. mthis = NULL;
  369. if (this) {
  370. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_17)));
  371. }
  372. void* retval = (void *) mono_runtime_invoke (method_17, mthis, arg_ptrs, NULL);
  373. void * res;
  374. if (!retval) {
  375. res = NULL;
  376. } else {
  377. char *str = mono_string_to_utf8 ((MonoString *) retval);
  378. NSString *nsstr = [[NSString alloc] initWithUTF8String:str];
  379. [nsstr autorelease];
  380. mono_free (str);
  381. res = nsstr;
  382. }
  383. return res;
  384. }
  385. static MonoMethod *method_18 = NULL;
  386. void *
  387. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo_set_ThumbPath (id this, SEL sel, NSString * p0)
  388. {
  389. void *arg_ptrs [1];
  390. MonoObject *mthis;
  391. if (mono_domain_get () == NULL)
  392. mono_jit_thread_attach (NULL);
  393. if (!method_18)
  394. method_18 = get_method_for_selector ([this class], sel).method->method;
  395. mthis = NULL;
  396. if (this) {
  397. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_18)));
  398. }
  399. arg_ptrs [0] = p0 ? mono_string_new (mono_domain_get (), [p0 UTF8String]) : NULL;
  400. mono_runtime_invoke (method_18, mthis, arg_ptrs, NULL);
  401. return NULL;
  402. }
  403. static MonoMethod *method_19 = NULL;
  404. void *
  405. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo_get_IsVideo (id this, SEL sel)
  406. {
  407. void *arg_ptrs [0];
  408. MonoObject *mthis;
  409. if (mono_domain_get () == NULL)
  410. mono_jit_thread_attach (NULL);
  411. if (!method_19)
  412. method_19 = get_method_for_selector ([this class], sel).method->method;
  413. mthis = NULL;
  414. if (this) {
  415. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_19)));
  416. }
  417. void* retval = (void *) mono_runtime_invoke (method_19, mthis, arg_ptrs, NULL);
  418. void * res;
  419. res = *(void * *) mono_object_unbox (retval);
  420. return res;
  421. }
  422. static MonoMethod *method_20 = NULL;
  423. void *
  424. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo_set_IsVideo (id this, SEL sel, bool p0)
  425. {
  426. void *arg_ptrs [1];
  427. MonoObject *mthis;
  428. if (mono_domain_get () == NULL)
  429. mono_jit_thread_attach (NULL);
  430. if (!method_20)
  431. method_20 = get_method_for_selector ([this class], sel).method->method;
  432. mthis = NULL;
  433. if (this) {
  434. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_20)));
  435. }
  436. arg_ptrs [0] = &p0;
  437. mono_runtime_invoke (method_20, mthis, arg_ptrs, NULL);
  438. return NULL;
  439. }
  440. static MonoMethod *method_21 = NULL;
  441. void *
  442. native_to_managed_trampoline_DriveThroughSafari_Touch_Views_PhotoInfo__ctor (id this, SEL sel)
  443. {
  444. void *arg_ptrs [0];
  445. MonoObject *mthis;
  446. if (mono_domain_get () == NULL)
  447. mono_jit_thread_attach (NULL);
  448. if (monotouch_try_get_nsobject (this))
  449. return this;
  450. if (!method_21)
  451. method_21 = get_method_for_selector ([this class], sel).method->method;
  452. int handle = (int) this;
  453. handle |= 1;
  454. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_21));
  455. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  456. mono_runtime_invoke (method_21, mthis, arg_ptrs, NULL);
  457. monotouch_create_managed_ref (this, mthis, true);
  458. void *params[2];
  459. params[0] = mthis;
  460. params[1] = &this;
  461. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  462. return this;
  463. }
  464. static MonoMethod *method_22 = NULL;
  465. void *
  466. native_to_managed_trampoline_MonoTouch_Foundation_InternalNSNotificationHandler_Post (id this, SEL sel, id p0)
  467. {
  468. void *arg_ptrs [1];
  469. MonoObject *mthis;
  470. if (mono_domain_get () == NULL)
  471. mono_jit_thread_attach (NULL);
  472. if (!method_22)
  473. method_22 = get_method_for_selector ([this class], sel).method->method;
  474. mthis = NULL;
  475. if (this) {
  476. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_22)));
  477. }
  478. NSObject *nsobj0 = (NSObject *) p0;
  479. MonoObject *mobj0 = NULL;
  480. bool created0 = false;
  481. if (nsobj0) {
  482. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_22, 0), &created0);
  483. }
  484. arg_ptrs [0] = mobj0;
  485. mono_runtime_invoke (method_22, mthis, arg_ptrs, NULL);
  486. return NULL;
  487. }
  488. static MonoMethod *method_23 = NULL;
  489. void *
  490. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchGeoLocationWatcher_LocationDelegate_UpdatedHeading (id this, SEL sel, id p0, id p1)
  491. {
  492. void *arg_ptrs [2];
  493. MonoObject *mthis;
  494. if (mono_domain_get () == NULL)
  495. mono_jit_thread_attach (NULL);
  496. if (!method_23)
  497. method_23 = get_method_for_selector ([this class], sel).method->method;
  498. mthis = NULL;
  499. if (this) {
  500. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_23)));
  501. }
  502. NSObject *nsobj0 = (NSObject *) p0;
  503. MonoObject *mobj0 = NULL;
  504. bool created0 = false;
  505. if (nsobj0) {
  506. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_23, 0), &created0);
  507. }
  508. arg_ptrs [0] = mobj0;
  509. NSObject *nsobj1 = (NSObject *) p1;
  510. MonoObject *mobj1 = NULL;
  511. bool created1 = false;
  512. if (nsobj1) {
  513. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_23, 1), &created1);
  514. }
  515. arg_ptrs [1] = mobj1;
  516. mono_runtime_invoke (method_23, mthis, arg_ptrs, NULL);
  517. return NULL;
  518. }
  519. static MonoMethod *method_24 = NULL;
  520. void *
  521. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchGeoLocationWatcher_LocationDelegate_LocationsUpdated (id this, SEL sel, id p0, id p1)
  522. {
  523. void *arg_ptrs [2];
  524. MonoObject *mthis;
  525. if (mono_domain_get () == NULL)
  526. mono_jit_thread_attach (NULL);
  527. if (!method_24)
  528. method_24 = get_method_for_selector ([this class], sel).method->method;
  529. mthis = NULL;
  530. if (this) {
  531. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_24)));
  532. }
  533. NSObject *nsobj0 = (NSObject *) p0;
  534. MonoObject *mobj0 = NULL;
  535. bool created0 = false;
  536. if (nsobj0) {
  537. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_24, 0), &created0);
  538. }
  539. arg_ptrs [0] = mobj0;
  540. if (p1) {
  541. NSArray *arr = (NSArray *) p1;
  542. MonoClass *e_class;
  543. MonoArray *marr;
  544. MonoType *p;
  545. int j;
  546. MonoType *p_class;
  547. p = monotouch_get_parameter_type (method_24, 1);
  548. e_class = mono_class_get_element_class (mono_class_from_mono_type (p));
  549. marr = mono_array_new (mono_domain_get (), e_class, [arr count]);
  550. for (j = 0; j < [arr count]; j++) {
  551. NSObject *nobj = [arr objectAtIndex: j];
  552. MonoObject *mobj1 = NULL;
  553. p_class = mono_class_get_type (e_class);
  554. if (nobj) {
  555. mobj1 = get_nsobject_with_type_for_ptr (nobj, false, p_class);
  556. }
  557. mono_array_set (marr, MonoObject *, j, mobj1);
  558. }
  559. arg_ptrs [1] = marr;
  560. } else {
  561. arg_ptrs [1] = NULL;
  562. }
  563. mono_runtime_invoke (method_24, mthis, arg_ptrs, NULL);
  564. return NULL;
  565. }
  566. static MonoMethod *method_25 = NULL;
  567. void *
  568. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchGeoLocationWatcher_LocationDelegate_Failed (id this, SEL sel, id p0, id p1)
  569. {
  570. void *arg_ptrs [2];
  571. MonoObject *mthis;
  572. if (mono_domain_get () == NULL)
  573. mono_jit_thread_attach (NULL);
  574. if (!method_25)
  575. method_25 = get_method_for_selector ([this class], sel).method->method;
  576. mthis = NULL;
  577. if (this) {
  578. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_25)));
  579. }
  580. NSObject *nsobj0 = (NSObject *) p0;
  581. MonoObject *mobj0 = NULL;
  582. bool created0 = false;
  583. if (nsobj0) {
  584. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_25, 0), &created0);
  585. }
  586. arg_ptrs [0] = mobj0;
  587. NSObject *nsobj1 = (NSObject *) p1;
  588. MonoObject *mobj1 = NULL;
  589. bool created1 = false;
  590. if (nsobj1) {
  591. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_25, 1), &created1);
  592. }
  593. arg_ptrs [1] = mobj1;
  594. mono_runtime_invoke (method_25, mthis, arg_ptrs, NULL);
  595. return NULL;
  596. }
  597. static MonoMethod *method_26 = NULL;
  598. void *
  599. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchGeoLocationWatcher_LocationDelegate_MonitoringFailed (id this, SEL sel, id p0, id p1, id p2)
  600. {
  601. void *arg_ptrs [3];
  602. MonoObject *mthis;
  603. if (mono_domain_get () == NULL)
  604. mono_jit_thread_attach (NULL);
  605. if (!method_26)
  606. method_26 = get_method_for_selector ([this class], sel).method->method;
  607. mthis = NULL;
  608. if (this) {
  609. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_26)));
  610. }
  611. NSObject *nsobj0 = (NSObject *) p0;
  612. MonoObject *mobj0 = NULL;
  613. bool created0 = false;
  614. if (nsobj0) {
  615. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_26, 0), &created0);
  616. }
  617. arg_ptrs [0] = mobj0;
  618. NSObject *nsobj1 = (NSObject *) p1;
  619. MonoObject *mobj1 = NULL;
  620. bool created1 = false;
  621. if (nsobj1) {
  622. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_26, 1), &created1);
  623. }
  624. arg_ptrs [1] = mobj1;
  625. NSObject *nsobj2 = (NSObject *) p2;
  626. MonoObject *mobj2 = NULL;
  627. bool created2 = false;
  628. if (nsobj2) {
  629. mobj2 = get_nsobject_with_type_for_ptr_created (nsobj2, false, monotouch_get_parameter_type (method_26, 2), &created2);
  630. }
  631. arg_ptrs [2] = mobj2;
  632. mono_runtime_invoke (method_26, mthis, arg_ptrs, NULL);
  633. return NULL;
  634. }
  635. static MonoMethod *method_27 = NULL;
  636. void *
  637. native_to_managed_trampoline_Cirrious_MvvmCross_Touch_Platform_MvxApplicationDelegate__ctor (id this, SEL sel)
  638. {
  639. void *arg_ptrs [0];
  640. MonoObject *mthis;
  641. if (mono_domain_get () == NULL)
  642. mono_jit_thread_attach (NULL);
  643. if (monotouch_try_get_nsobject (this))
  644. return this;
  645. if (!method_27)
  646. method_27 = get_method_for_selector ([this class], sel).method->method;
  647. int handle = (int) this;
  648. handle |= 1;
  649. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_27));
  650. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  651. mono_runtime_invoke (method_27, mthis, arg_ptrs, NULL);
  652. monotouch_create_managed_ref (this, mthis, true);
  653. void *params[2];
  654. params[0] = mthis;
  655. params[1] = &this;
  656. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  657. return this;
  658. }
  659. static MonoMethod *method_28 = NULL;
  660. void *
  661. native_to_managed_trampoline_Cirrious_MvvmCross_Touch_Platform_MvxApplicationDelegate_WillEnterForeground (id this, SEL sel, id p0)
  662. {
  663. void *arg_ptrs [1];
  664. MonoObject *mthis;
  665. if (mono_domain_get () == NULL)
  666. mono_jit_thread_attach (NULL);
  667. if (!method_28)
  668. method_28 = get_method_for_selector ([this class], sel).method->method;
  669. mthis = NULL;
  670. if (this) {
  671. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_28)));
  672. }
  673. NSObject *nsobj0 = (NSObject *) p0;
  674. MonoObject *mobj0 = NULL;
  675. bool created0 = false;
  676. if (nsobj0) {
  677. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_28, 0), &created0);
  678. }
  679. arg_ptrs [0] = mobj0;
  680. mono_runtime_invoke (method_28, mthis, arg_ptrs, NULL);
  681. return NULL;
  682. }
  683. static MonoMethod *method_29 = NULL;
  684. void *
  685. native_to_managed_trampoline_Cirrious_MvvmCross_Touch_Platform_MvxApplicationDelegate_DidEnterBackground (id this, SEL sel, id p0)
  686. {
  687. void *arg_ptrs [1];
  688. MonoObject *mthis;
  689. if (mono_domain_get () == NULL)
  690. mono_jit_thread_attach (NULL);
  691. if (!method_29)
  692. method_29 = get_method_for_selector ([this class], sel).method->method;
  693. mthis = NULL;
  694. if (this) {
  695. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_29)));
  696. }
  697. NSObject *nsobj0 = (NSObject *) p0;
  698. MonoObject *mobj0 = NULL;
  699. bool created0 = false;
  700. if (nsobj0) {
  701. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_29, 0), &created0);
  702. }
  703. arg_ptrs [0] = mobj0;
  704. mono_runtime_invoke (method_29, mthis, arg_ptrs, NULL);
  705. return NULL;
  706. }
  707. static MonoMethod *method_30 = NULL;
  708. void *
  709. native_to_managed_trampoline_Cirrious_MvvmCross_Touch_Platform_MvxApplicationDelegate_WillTerminate (id this, SEL sel, id p0)
  710. {
  711. void *arg_ptrs [1];
  712. MonoObject *mthis;
  713. if (mono_domain_get () == NULL)
  714. mono_jit_thread_attach (NULL);
  715. if (!method_30)
  716. method_30 = get_method_for_selector ([this class], sel).method->method;
  717. mthis = NULL;
  718. if (this) {
  719. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_30)));
  720. }
  721. NSObject *nsobj0 = (NSObject *) p0;
  722. MonoObject *mobj0 = NULL;
  723. bool created0 = false;
  724. if (nsobj0) {
  725. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_30, 0), &created0);
  726. }
  727. arg_ptrs [0] = mobj0;
  728. mono_runtime_invoke (method_30, mthis, arg_ptrs, NULL);
  729. return NULL;
  730. }
  731. static MonoMethod *method_31 = NULL;
  732. void *
  733. native_to_managed_trampoline_Cirrious_MvvmCross_Touch_Platform_MvxApplicationDelegate_FinishedLaunching (id this, SEL sel, id p0)
  734. {
  735. void *arg_ptrs [1];
  736. MonoObject *mthis;
  737. if (mono_domain_get () == NULL)
  738. mono_jit_thread_attach (NULL);
  739. if (!method_31)
  740. method_31 = get_method_for_selector ([this class], sel).method->method;
  741. mthis = NULL;
  742. if (this) {
  743. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_31)));
  744. }
  745. NSObject *nsobj0 = (NSObject *) p0;
  746. MonoObject *mobj0 = NULL;
  747. bool created0 = false;
  748. if (nsobj0) {
  749. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_31, 0), &created0);
  750. }
  751. arg_ptrs [0] = mobj0;
  752. mono_runtime_invoke (method_31, mthis, arg_ptrs, NULL);
  753. return NULL;
  754. }
  755. static MonoMethod *method_32 = NULL;
  756. void *
  757. native_to_managed_trampoline_Cirrious_MvvmCross_Dialog_Touch_Elements_SimplePickerElement_SimplePickerViewModel_GetComponentCount (id this, SEL sel, id p0)
  758. {
  759. void *arg_ptrs [1];
  760. MonoObject *mthis;
  761. if (mono_domain_get () == NULL)
  762. mono_jit_thread_attach (NULL);
  763. if (!method_32)
  764. method_32 = get_method_for_selector ([this class], sel).method->method;
  765. mthis = NULL;
  766. if (this) {
  767. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_32)));
  768. }
  769. NSObject *nsobj0 = (NSObject *) p0;
  770. MonoObject *mobj0 = NULL;
  771. bool created0 = false;
  772. if (nsobj0) {
  773. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_32, 0), &created0);
  774. }
  775. arg_ptrs [0] = mobj0;
  776. void* retval = (void *) mono_runtime_invoke (method_32, mthis, arg_ptrs, NULL);
  777. void * res;
  778. res = *(void * *) mono_object_unbox (retval);
  779. return res;
  780. }
  781. static MonoMethod *method_33 = NULL;
  782. void *
  783. native_to_managed_trampoline_Cirrious_MvvmCross_Dialog_Touch_Elements_SimplePickerElement_SimplePickerViewModel_GetRowsInComponent (id this, SEL sel, id p0, int p1)
  784. {
  785. void *arg_ptrs [2];
  786. MonoObject *mthis;
  787. if (mono_domain_get () == NULL)
  788. mono_jit_thread_attach (NULL);
  789. if (!method_33)
  790. method_33 = get_method_for_selector ([this class], sel).method->method;
  791. mthis = NULL;
  792. if (this) {
  793. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_33)));
  794. }
  795. NSObject *nsobj0 = (NSObject *) p0;
  796. MonoObject *mobj0 = NULL;
  797. bool created0 = false;
  798. if (nsobj0) {
  799. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_33, 0), &created0);
  800. }
  801. arg_ptrs [0] = mobj0;
  802. arg_ptrs [1] = &p1;
  803. void* retval = (void *) mono_runtime_invoke (method_33, mthis, arg_ptrs, NULL);
  804. void * res;
  805. res = *(void * *) mono_object_unbox (retval);
  806. return res;
  807. }
  808. static MonoMethod *method_34 = NULL;
  809. void *
  810. native_to_managed_trampoline_Cirrious_MvvmCross_Dialog_Touch_Elements_SimplePickerElement_SimplePickerViewModel_GetTitle (id this, SEL sel, id p0, int p1, int p2)
  811. {
  812. void *arg_ptrs [3];
  813. MonoObject *mthis;
  814. if (mono_domain_get () == NULL)
  815. mono_jit_thread_attach (NULL);
  816. if (!method_34)
  817. method_34 = get_method_for_selector ([this class], sel).method->method;
  818. mthis = NULL;
  819. if (this) {
  820. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_34)));
  821. }
  822. NSObject *nsobj0 = (NSObject *) p0;
  823. MonoObject *mobj0 = NULL;
  824. bool created0 = false;
  825. if (nsobj0) {
  826. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_34, 0), &created0);
  827. }
  828. arg_ptrs [0] = mobj0;
  829. arg_ptrs [1] = &p1;
  830. arg_ptrs [2] = &p2;
  831. void* retval = (void *) mono_runtime_invoke (method_34, mthis, arg_ptrs, NULL);
  832. void * res;
  833. if (!retval) {
  834. res = NULL;
  835. } else {
  836. char *str = mono_string_to_utf8 ((MonoString *) retval);
  837. NSString *nsstr = [[NSString alloc] initWithUTF8String:str];
  838. [nsstr autorelease];
  839. mono_free (str);
  840. res = nsstr;
  841. }
  842. return res;
  843. }
  844. static MonoMethod *method_35 = NULL;
  845. float
  846. native_to_managed_trampoline_Cirrious_MvvmCross_Dialog_Touch_Elements_SimplePickerElement_SimplePickerViewModel_GetComponentWidth (id this, SEL sel, id p0, int p1)
  847. {
  848. void *arg_ptrs [2];
  849. MonoObject *mthis;
  850. if (mono_domain_get () == NULL)
  851. mono_jit_thread_attach (NULL);
  852. if (!method_35)
  853. method_35 = get_method_for_selector ([this class], sel).method->method;
  854. mthis = NULL;
  855. if (this) {
  856. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_35)));
  857. }
  858. NSObject *nsobj0 = (NSObject *) p0;
  859. MonoObject *mobj0 = NULL;
  860. bool created0 = false;
  861. if (nsobj0) {
  862. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_35, 0), &created0);
  863. }
  864. arg_ptrs [0] = mobj0;
  865. arg_ptrs [1] = &p1;
  866. void* retval = (void *) mono_runtime_invoke (method_35, mthis, arg_ptrs, NULL);
  867. float res;
  868. res = *(float *) mono_object_unbox (retval);
  869. return res;
  870. }
  871. static MonoMethod *method_36 = NULL;
  872. float
  873. native_to_managed_trampoline_Cirrious_MvvmCross_Dialog_Touch_Elements_SimplePickerElement_SimplePickerViewModel_GetRowHeight (id this, SEL sel, id p0, int p1)
  874. {
  875. void *arg_ptrs [2];
  876. MonoObject *mthis;
  877. if (mono_domain_get () == NULL)
  878. mono_jit_thread_attach (NULL);
  879. if (!method_36)
  880. method_36 = get_method_for_selector ([this class], sel).method->method;
  881. mthis = NULL;
  882. if (this) {
  883. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_36)));
  884. }
  885. NSObject *nsobj0 = (NSObject *) p0;
  886. MonoObject *mobj0 = NULL;
  887. bool created0 = false;
  888. if (nsobj0) {
  889. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_36, 0), &created0);
  890. }
  891. arg_ptrs [0] = mobj0;
  892. arg_ptrs [1] = &p1;
  893. void* retval = (void *) mono_runtime_invoke (method_36, mthis, arg_ptrs, NULL);
  894. float res;
  895. res = *(float *) mono_object_unbox (retval);
  896. return res;
  897. }
  898. static MonoMethod *method_37 = NULL;
  899. void *
  900. native_to_managed_trampoline_Cirrious_MvvmCross_Dialog_Touch_Elements_SimplePickerElement_SimplePickerViewModel_Selected (id this, SEL sel, id p0, int p1, int p2)
  901. {
  902. void *arg_ptrs [3];
  903. MonoObject *mthis;
  904. if (mono_domain_get () == NULL)
  905. mono_jit_thread_attach (NULL);
  906. if (!method_37)
  907. method_37 = get_method_for_selector ([this class], sel).method->method;
  908. mthis = NULL;
  909. if (this) {
  910. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_37)));
  911. }
  912. NSObject *nsobj0 = (NSObject *) p0;
  913. MonoObject *mobj0 = NULL;
  914. bool created0 = false;
  915. if (nsobj0) {
  916. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_37, 0), &created0);
  917. }
  918. arg_ptrs [0] = mobj0;
  919. arg_ptrs [1] = &p1;
  920. arg_ptrs [2] = &p2;
  921. mono_runtime_invoke (method_37, mthis, arg_ptrs, NULL);
  922. return NULL;
  923. }
  924. static MonoMethod *method_38 = NULL;
  925. void *
  926. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchLocationWatcher_LocationDelegate_UpdatedHeading (id this, SEL sel, id p0, id p1)
  927. {
  928. void *arg_ptrs [2];
  929. MonoObject *mthis;
  930. if (mono_domain_get () == NULL)
  931. mono_jit_thread_attach (NULL);
  932. if (!method_38)
  933. method_38 = get_method_for_selector ([this class], sel).method->method;
  934. mthis = NULL;
  935. if (this) {
  936. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_38)));
  937. }
  938. NSObject *nsobj0 = (NSObject *) p0;
  939. MonoObject *mobj0 = NULL;
  940. bool created0 = false;
  941. if (nsobj0) {
  942. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_38, 0), &created0);
  943. }
  944. arg_ptrs [0] = mobj0;
  945. NSObject *nsobj1 = (NSObject *) p1;
  946. MonoObject *mobj1 = NULL;
  947. bool created1 = false;
  948. if (nsobj1) {
  949. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_38, 1), &created1);
  950. }
  951. arg_ptrs [1] = mobj1;
  952. mono_runtime_invoke (method_38, mthis, arg_ptrs, NULL);
  953. return NULL;
  954. }
  955. static MonoMethod *method_39 = NULL;
  956. void *
  957. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchLocationWatcher_LocationDelegate_LocationsUpdated (id this, SEL sel, id p0, id p1)
  958. {
  959. void *arg_ptrs [2];
  960. MonoObject *mthis;
  961. if (mono_domain_get () == NULL)
  962. mono_jit_thread_attach (NULL);
  963. if (!method_39)
  964. method_39 = get_method_for_selector ([this class], sel).method->method;
  965. mthis = NULL;
  966. if (this) {
  967. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_39)));
  968. }
  969. NSObject *nsobj0 = (NSObject *) p0;
  970. MonoObject *mobj0 = NULL;
  971. bool created0 = false;
  972. if (nsobj0) {
  973. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_39, 0), &created0);
  974. }
  975. arg_ptrs [0] = mobj0;
  976. if (p1) {
  977. NSArray *arr = (NSArray *) p1;
  978. MonoClass *e_class;
  979. MonoArray *marr;
  980. MonoType *p;
  981. int j;
  982. MonoType *p_class;
  983. p = monotouch_get_parameter_type (method_39, 1);
  984. e_class = mono_class_get_element_class (mono_class_from_mono_type (p));
  985. marr = mono_array_new (mono_domain_get (), e_class, [arr count]);
  986. for (j = 0; j < [arr count]; j++) {
  987. NSObject *nobj = [arr objectAtIndex: j];
  988. MonoObject *mobj1 = NULL;
  989. p_class = mono_class_get_type (e_class);
  990. if (nobj) {
  991. mobj1 = get_nsobject_with_type_for_ptr (nobj, false, p_class);
  992. }
  993. mono_array_set (marr, MonoObject *, j, mobj1);
  994. }
  995. arg_ptrs [1] = marr;
  996. } else {
  997. arg_ptrs [1] = NULL;
  998. }
  999. mono_runtime_invoke (method_39, mthis, arg_ptrs, NULL);
  1000. return NULL;
  1001. }
  1002. static MonoMethod *method_40 = NULL;
  1003. void *
  1004. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchLocationWatcher_LocationDelegate_Failed (id this, SEL sel, id p0, id p1)
  1005. {
  1006. void *arg_ptrs [2];
  1007. MonoObject *mthis;
  1008. if (mono_domain_get () == NULL)
  1009. mono_jit_thread_attach (NULL);
  1010. if (!method_40)
  1011. method_40 = get_method_for_selector ([this class], sel).method->method;
  1012. mthis = NULL;
  1013. if (this) {
  1014. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_40)));
  1015. }
  1016. NSObject *nsobj0 = (NSObject *) p0;
  1017. MonoObject *mobj0 = NULL;
  1018. bool created0 = false;
  1019. if (nsobj0) {
  1020. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_40, 0), &created0);
  1021. }
  1022. arg_ptrs [0] = mobj0;
  1023. NSObject *nsobj1 = (NSObject *) p1;
  1024. MonoObject *mobj1 = NULL;
  1025. bool created1 = false;
  1026. if (nsobj1) {
  1027. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_40, 1), &created1);
  1028. }
  1029. arg_ptrs [1] = mobj1;
  1030. mono_runtime_invoke (method_40, mthis, arg_ptrs, NULL);
  1031. return NULL;
  1032. }
  1033. static MonoMethod *method_41 = NULL;
  1034. void *
  1035. native_to_managed_trampoline_Cirrious_MvvmCross_Plugins_Location_Touch_MvxTouchLocationWatcher_LocationDelegate_MonitoringFailed (id this, SEL sel, id p0, id p1, id p2)
  1036. {
  1037. void *arg_ptrs [3];
  1038. MonoObject *mthis;
  1039. if (mono_domain_get () == NULL)
  1040. mono_jit_thread_attach (NULL);
  1041. if (!method_41)
  1042. method_41 = get_method_for_selector ([this class], sel).method->method;
  1043. mthis = NULL;
  1044. if (this) {
  1045. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_41)));
  1046. }
  1047. NSObject *nsobj0 = (NSObject *) p0;
  1048. MonoObject *mobj0 = NULL;
  1049. bool created0 = false;
  1050. if (nsobj0) {
  1051. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_41, 0), &created0);
  1052. }
  1053. arg_ptrs [0] = mobj0;
  1054. NSObject *nsobj1 = (NSObject *) p1;
  1055. MonoObject *mobj1 = NULL;
  1056. bool created1 = false;
  1057. if (nsobj1) {
  1058. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_41, 1), &created1);
  1059. }
  1060. arg_ptrs [1] = mobj1;
  1061. NSObject *nsobj2 = (NSObject *) p2;
  1062. MonoObject *mobj2 = NULL;
  1063. bool created2 = false;
  1064. if (nsobj2) {
  1065. mobj2 = get_nsobject_with_type_for_ptr_created (nsobj2, false, monotouch_get_parameter_type (method_41, 2), &created2);
  1066. }
  1067. arg_ptrs [2] = mobj2;
  1068. mono_runtime_invoke (method_41, mthis, arg_ptrs, NULL);
  1069. return NULL;
  1070. }
  1071. static MonoMethod *method_42 = NULL;
  1072. void *
  1073. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxPickerViewModel_GetComponentCount (id this, SEL sel, id p0)
  1074. {
  1075. void *arg_ptrs [1];
  1076. MonoObject *mthis;
  1077. if (mono_domain_get () == NULL)
  1078. mono_jit_thread_attach (NULL);
  1079. if (!method_42)
  1080. method_42 = get_method_for_selector ([this class], sel).method->method;
  1081. mthis = NULL;
  1082. if (this) {
  1083. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_42)));
  1084. }
  1085. NSObject *nsobj0 = (NSObject *) p0;
  1086. MonoObject *mobj0 = NULL;
  1087. bool created0 = false;
  1088. if (nsobj0) {
  1089. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_42, 0), &created0);
  1090. }
  1091. arg_ptrs [0] = mobj0;
  1092. void* retval = (void *) mono_runtime_invoke (method_42, mthis, arg_ptrs, NULL);
  1093. void * res;
  1094. res = *(void * *) mono_object_unbox (retval);
  1095. return res;
  1096. }
  1097. static MonoMethod *method_43 = NULL;
  1098. void *
  1099. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxPickerViewModel_GetRowsInComponent (id this, SEL sel, id p0, int p1)
  1100. {
  1101. void *arg_ptrs [2];
  1102. MonoObject *mthis;
  1103. if (mono_domain_get () == NULL)
  1104. mono_jit_thread_attach (NULL);
  1105. if (!method_43)
  1106. method_43 = get_method_for_selector ([this class], sel).method->method;
  1107. mthis = NULL;
  1108. if (this) {
  1109. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_43)));
  1110. }
  1111. NSObject *nsobj0 = (NSObject *) p0;
  1112. MonoObject *mobj0 = NULL;
  1113. bool created0 = false;
  1114. if (nsobj0) {
  1115. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_43, 0), &created0);
  1116. }
  1117. arg_ptrs [0] = mobj0;
  1118. arg_ptrs [1] = &p1;
  1119. void* retval = (void *) mono_runtime_invoke (method_43, mthis, arg_ptrs, NULL);
  1120. void * res;
  1121. res = *(void * *) mono_object_unbox (retval);
  1122. return res;
  1123. }
  1124. static MonoMethod *method_44 = NULL;
  1125. void *
  1126. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxPickerViewModel_GetTitle (id this, SEL sel, id p0, int p1, int p2)
  1127. {
  1128. void *arg_ptrs [3];
  1129. MonoObject *mthis;
  1130. if (mono_domain_get () == NULL)
  1131. mono_jit_thread_attach (NULL);
  1132. if (!method_44)
  1133. method_44 = get_method_for_selector ([this class], sel).method->method;
  1134. mthis = NULL;
  1135. if (this) {
  1136. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_44)));
  1137. }
  1138. NSObject *nsobj0 = (NSObject *) p0;
  1139. MonoObject *mobj0 = NULL;
  1140. bool created0 = false;
  1141. if (nsobj0) {
  1142. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_44, 0), &created0);
  1143. }
  1144. arg_ptrs [0] = mobj0;
  1145. arg_ptrs [1] = &p1;
  1146. arg_ptrs [2] = &p2;
  1147. void* retval = (void *) mono_runtime_invoke (method_44, mthis, arg_ptrs, NULL);
  1148. void * res;
  1149. if (!retval) {
  1150. res = NULL;
  1151. } else {
  1152. char *str = mono_string_to_utf8 ((MonoString *) retval);
  1153. NSString *nsstr = [[NSString alloc] initWithUTF8String:str];
  1154. [nsstr autorelease];
  1155. mono_free (str);
  1156. res = nsstr;
  1157. }
  1158. return res;
  1159. }
  1160. static MonoMethod *method_45 = NULL;
  1161. void *
  1162. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxPickerViewModel_Selected (id this, SEL sel, id p0, int p1, int p2)
  1163. {
  1164. void *arg_ptrs [3];
  1165. MonoObject *mthis;
  1166. if (mono_domain_get () == NULL)
  1167. mono_jit_thread_attach (NULL);
  1168. if (!method_45)
  1169. method_45 = get_method_for_selector ([this class], sel).method->method;
  1170. mthis = NULL;
  1171. if (this) {
  1172. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_45)));
  1173. }
  1174. NSObject *nsobj0 = (NSObject *) p0;
  1175. MonoObject *mobj0 = NULL;
  1176. bool created0 = false;
  1177. if (nsobj0) {
  1178. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_45, 0), &created0);
  1179. }
  1180. arg_ptrs [0] = mobj0;
  1181. arg_ptrs [1] = &p1;
  1182. arg_ptrs [2] = &p2;
  1183. mono_runtime_invoke (method_45, mthis, arg_ptrs, NULL);
  1184. return NULL;
  1185. }
  1186. static MonoMethod *method_46 = NULL;
  1187. void *
  1188. native_to_managed_trampoline_MonoTouch_UIKit_UITableViewSource__ctor (id this, SEL sel)
  1189. {
  1190. void *arg_ptrs [0];
  1191. MonoObject *mthis;
  1192. if (mono_domain_get () == NULL)
  1193. mono_jit_thread_attach (NULL);
  1194. if (monotouch_try_get_nsobject (this))
  1195. return this;
  1196. if (!method_46)
  1197. method_46 = get_method_for_selector ([this class], sel).method->method;
  1198. int handle = (int) this;
  1199. handle |= 1;
  1200. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_46));
  1201. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  1202. mono_runtime_invoke (method_46, mthis, arg_ptrs, NULL);
  1203. monotouch_create_managed_ref (this, mthis, true);
  1204. void *params[2];
  1205. params[0] = mthis;
  1206. params[1] = &this;
  1207. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  1208. return this;
  1209. }
  1210. static MonoMethod *method_47 = NULL;
  1211. void *
  1212. native_to_managed_trampoline_MonoTouch_UIKit_UIWebView__UIWebViewDelegate__ctor (id this, SEL sel)
  1213. {
  1214. void *arg_ptrs [0];
  1215. MonoObject *mthis;
  1216. if (mono_domain_get () == NULL)
  1217. mono_jit_thread_attach (NULL);
  1218. if (monotouch_try_get_nsobject (this))
  1219. return this;
  1220. if (!method_47)
  1221. method_47 = get_method_for_selector ([this class], sel).method->method;
  1222. int handle = (int) this;
  1223. handle |= 1;
  1224. mthis = mono_object_new (mono_domain_get (), mono_method_get_class (method_47));
  1225. mono_field_set_value (mthis, monotouch_nsobject_handle_field, &handle);
  1226. mono_runtime_invoke (method_47, mthis, arg_ptrs, NULL);
  1227. monotouch_create_managed_ref (this, mthis, true);
  1228. void *params[2];
  1229. params[0] = mthis;
  1230. params[1] = &this;
  1231. mono_runtime_invoke (monotouch_register_nsobject, NULL, params, NULL);
  1232. return this;
  1233. }
  1234. static MonoMethod *method_48 = NULL;
  1235. void *
  1236. native_to_managed_trampoline_MonoTouch_UIKit_UIWebView__UIWebViewDelegate_ShouldStartLoad (id this, SEL sel, id p0, id p1, int p2)
  1237. {
  1238. void *arg_ptrs [3];
  1239. MonoObject *mthis;
  1240. if (mono_domain_get () == NULL)
  1241. mono_jit_thread_attach (NULL);
  1242. if (!method_48)
  1243. method_48 = get_method_for_selector ([this class], sel).method->method;
  1244. mthis = NULL;
  1245. if (this) {
  1246. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_48)));
  1247. }
  1248. NSObject *nsobj0 = (NSObject *) p0;
  1249. MonoObject *mobj0 = NULL;
  1250. bool created0 = false;
  1251. if (nsobj0) {
  1252. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_48, 0), &created0);
  1253. }
  1254. arg_ptrs [0] = mobj0;
  1255. NSObject *nsobj1 = (NSObject *) p1;
  1256. MonoObject *mobj1 = NULL;
  1257. bool created1 = false;
  1258. if (nsobj1) {
  1259. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_48, 1), &created1);
  1260. }
  1261. arg_ptrs [1] = mobj1;
  1262. arg_ptrs [2] = &p2;
  1263. void* retval = (void *) mono_runtime_invoke (method_48, mthis, arg_ptrs, NULL);
  1264. void * res;
  1265. res = *(void * *) mono_object_unbox (retval);
  1266. return res;
  1267. }
  1268. static MonoMethod *method_49 = NULL;
  1269. void *
  1270. native_to_managed_trampoline_MonoTouch_UIKit_UIWebView__UIWebViewDelegate_LoadStarted (id this, SEL sel, id p0)
  1271. {
  1272. void *arg_ptrs [1];
  1273. MonoObject *mthis;
  1274. if (mono_domain_get () == NULL)
  1275. mono_jit_thread_attach (NULL);
  1276. if (!method_49)
  1277. method_49 = get_method_for_selector ([this class], sel).method->method;
  1278. mthis = NULL;
  1279. if (this) {
  1280. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_49)));
  1281. }
  1282. NSObject *nsobj0 = (NSObject *) p0;
  1283. MonoObject *mobj0 = NULL;
  1284. bool created0 = false;
  1285. if (nsobj0) {
  1286. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_49, 0), &created0);
  1287. }
  1288. arg_ptrs [0] = mobj0;
  1289. mono_runtime_invoke (method_49, mthis, arg_ptrs, NULL);
  1290. return NULL;
  1291. }
  1292. static MonoMethod *method_50 = NULL;
  1293. void *
  1294. native_to_managed_trampoline_MonoTouch_UIKit_UIWebView__UIWebViewDelegate_LoadingFinished (id this, SEL sel, id p0)
  1295. {
  1296. void *arg_ptrs [1];
  1297. MonoObject *mthis;
  1298. if (mono_domain_get () == NULL)
  1299. mono_jit_thread_attach (NULL);
  1300. if (!method_50)
  1301. method_50 = get_method_for_selector ([this class], sel).method->method;
  1302. mthis = NULL;
  1303. if (this) {
  1304. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_50)));
  1305. }
  1306. NSObject *nsobj0 = (NSObject *) p0;
  1307. MonoObject *mobj0 = NULL;
  1308. bool created0 = false;
  1309. if (nsobj0) {
  1310. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_50, 0), &created0);
  1311. }
  1312. arg_ptrs [0] = mobj0;
  1313. mono_runtime_invoke (method_50, mthis, arg_ptrs, NULL);
  1314. return NULL;
  1315. }
  1316. static MonoMethod *method_51 = NULL;
  1317. void *
  1318. native_to_managed_trampoline_MonoTouch_UIKit_UIWebView__UIWebViewDelegate_LoadFailed (id this, SEL sel, id p0, id p1)
  1319. {
  1320. void *arg_ptrs [2];
  1321. MonoObject *mthis;
  1322. if (mono_domain_get () == NULL)
  1323. mono_jit_thread_attach (NULL);
  1324. if (!method_51)
  1325. method_51 = get_method_for_selector ([this class], sel).method->method;
  1326. mthis = NULL;
  1327. if (this) {
  1328. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_51)));
  1329. }
  1330. NSObject *nsobj0 = (NSObject *) p0;
  1331. MonoObject *mobj0 = NULL;
  1332. bool created0 = false;
  1333. if (nsobj0) {
  1334. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_51, 0), &created0);
  1335. }
  1336. arg_ptrs [0] = mobj0;
  1337. NSObject *nsobj1 = (NSObject *) p1;
  1338. MonoObject *mobj1 = NULL;
  1339. bool created1 = false;
  1340. if (nsobj1) {
  1341. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_51, 1), &created1);
  1342. }
  1343. arg_ptrs [1] = mobj1;
  1344. mono_runtime_invoke (method_51, mthis, arg_ptrs, NULL);
  1345. return NULL;
  1346. }
  1347. static MonoMethod *method_52 = NULL;
  1348. void *
  1349. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxBaseCollectionViewSource_ItemSelected (id this, SEL sel, id p0, id p1)
  1350. {
  1351. void *arg_ptrs [2];
  1352. MonoObject *mthis;
  1353. if (mono_domain_get () == NULL)
  1354. mono_jit_thread_attach (NULL);
  1355. if (!method_52)
  1356. method_52 = get_method_for_selector ([this class], sel).method->method;
  1357. mthis = NULL;
  1358. if (this) {
  1359. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_52)));
  1360. }
  1361. NSObject *nsobj0 = (NSObject *) p0;
  1362. MonoObject *mobj0 = NULL;
  1363. bool created0 = false;
  1364. if (nsobj0) {
  1365. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_52, 0), &created0);
  1366. }
  1367. arg_ptrs [0] = mobj0;
  1368. NSObject *nsobj1 = (NSObject *) p1;
  1369. MonoObject *mobj1 = NULL;
  1370. bool created1 = false;
  1371. if (nsobj1) {
  1372. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_52, 1), &created1);
  1373. }
  1374. arg_ptrs [1] = mobj1;
  1375. mono_runtime_invoke (method_52, mthis, arg_ptrs, NULL);
  1376. return NULL;
  1377. }
  1378. static MonoMethod *method_53 = NULL;
  1379. void *
  1380. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxBaseCollectionViewSource_GetCell (id this, SEL sel, id p0, id p1)
  1381. {
  1382. void *arg_ptrs [2];
  1383. MonoObject *mthis;
  1384. if (mono_domain_get () == NULL)
  1385. mono_jit_thread_attach (NULL);
  1386. if (!method_53)
  1387. method_53 = get_method_for_selector ([this class], sel).method->method;
  1388. mthis = NULL;
  1389. if (this) {
  1390. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_53)));
  1391. }
  1392. NSObject *nsobj0 = (NSObject *) p0;
  1393. MonoObject *mobj0 = NULL;
  1394. bool created0 = false;
  1395. if (nsobj0) {
  1396. mobj0 = get_nsobject_with_type_for_ptr_created (nsobj0, false, monotouch_get_parameter_type (method_53, 0), &created0);
  1397. }
  1398. arg_ptrs [0] = mobj0;
  1399. NSObject *nsobj1 = (NSObject *) p1;
  1400. MonoObject *mobj1 = NULL;
  1401. bool created1 = false;
  1402. if (nsobj1) {
  1403. mobj1 = get_nsobject_with_type_for_ptr_created (nsobj1, false, monotouch_get_parameter_type (method_53, 1), &created1);
  1404. }
  1405. arg_ptrs [1] = mobj1;
  1406. void* retval = (void *) mono_runtime_invoke (method_53, mthis, arg_ptrs, NULL);
  1407. void * res;
  1408. if (!retval) {
  1409. res = NULL;
  1410. } else {
  1411. id retobj;
  1412. mono_field_get_value (retval, monotouch_nsobject_handle_field, (void **) &retobj);
  1413. [retobj retain];
  1414. [retobj autorelease];
  1415. res = retobj;
  1416. }
  1417. return res;
  1418. }
  1419. static MonoMethod *method_54 = NULL;
  1420. void *
  1421. native_to_managed_trampoline_Cirrious_MvvmCross_Binding_Touch_Views_MvxBaseCollectionViewSource_CellDisplayingEnded (id this, SEL sel, id p0, id p1, id p2)
  1422. {
  1423. void *arg_ptrs [3];
  1424. MonoObject *mthis;
  1425. if (mono_domain_get () == NULL)
  1426. mono_jit_thread_attach (NULL);
  1427. if (!method_54)
  1428. method_54 = get_method_for_selector ([this class], sel).method->method;
  1429. mthis = NULL;
  1430. if (this) {
  1431. mthis = get_nsobject_with_type_for_ptr (this, false, mono_class_get_type (mono_method_get_class (method_54)));
  1432. }
  1433. NSObject *nsobj0 =