Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  2. #pragma clang diagnostic ignored "-Wtypedef-redefinition"
  3. #pragma clang diagnostic ignored "-Wobjc-designated-initializers"
  4. #include <stdarg.h>
  5. #include <xamarin/xamarin.h>
  6. #include <objc/objc.h>
  7. #include <objc/runtime.h>
  8. #include <objc/message.h>
  9. #import <Foundation/Foundation.h>
  10. #import <UIKit/UIKit.h>
  11. #import <Photos/Photos.h>
  12. #import <QuartzCore/QuartzCore.h>
  13. #import <QuartzCore/CAEmitterBehavior.h>
  14. #import <AssetsLibrary/AssetsLibrary.h>
  15. #import <AVFoundation/AVFoundation.h>
  16. #import <CoreGraphics/CoreGraphics.h>
  17.  
  18.  
  19. static void native_to_managed_trampoline_1 (id self, SEL _cmd, MonoMethod **managed_method_ptr, const char *r0, const char *r1)
  20. {
  21.     MonoMethod *managed_method = *managed_method_ptr;
  22.     void *arg_ptrs [0];
  23.     MonoObject *mthis;
  24.     if (mono_domain_get () == NULL)
  25.         mono_jit_thread_attach (NULL);
  26.     mthis = NULL;
  27.     if (self) {
  28.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  29.     }
  30.     if (!managed_method) {
  31.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r0, r1, 0, NULL));
  32.         *managed_method_ptr = managed_method;
  33.     }
  34.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  35.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  36.  
  37.     return;
  38. }
  39.  
  40.  
  41. static BOOL native_to_managed_trampoline_2 (id self, SEL _cmd, MonoMethod **managed_method_ptr, void * p0, const char *r0, const char *r1, const char *r2)
  42. {
  43.     MonoMethod *managed_method = *managed_method_ptr;
  44.     void *arg_ptrs [1];
  45.     MonoObject *mthis;
  46.     if (mono_domain_get () == NULL)
  47.         mono_jit_thread_attach (NULL);
  48.     mthis = NULL;
  49.     if (self) {
  50.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  51.     }
  52.     if (!managed_method) {
  53.         const char *paramptr[1] = { r0 };
  54.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  55.         *managed_method_ptr = managed_method;
  56.     }
  57.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  58.     void * a0 = p0;
  59.     arg_ptrs [0] = &a0;
  60.  
  61.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  62.  
  63.     BOOL res;
  64.     res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
  65.  
  66.     return res;
  67. }
  68.  
  69.  
  70. static void native_to_managed_trampoline_3 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIImage * p0, NSError * p1, void * p2, const char *r0, const char *r1, const char *r2, const char *r3, const char *r4)
  71. {
  72.     MonoMethod *managed_method = *managed_method_ptr;
  73.     void *arg_ptrs [3];
  74.     MonoObject *mthis;
  75.     if (mono_domain_get () == NULL)
  76.         mono_jit_thread_attach (NULL);
  77.     mthis = NULL;
  78.     if (self) {
  79.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  80.     }
  81.     if (!managed_method) {
  82.         const char *paramptr[3] = { r0, r1, r2 };
  83.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r3, r4, 3, paramptr));
  84.         *managed_method_ptr = managed_method;
  85.     }
  86.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  87.     NSObject *nsobj0 = (NSObject *) p0;
  88.     MonoObject *mobj0 = NULL;
  89.     int32_t created0 = false;
  90.     if (nsobj0) {
  91.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  92.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  93.     }
  94.     arg_ptrs [0] = mobj0;
  95.     NSObject *nsobj1 = (NSObject *) p1;
  96.     MonoObject *mobj1 = NULL;
  97.     int32_t created1 = false;
  98.     if (nsobj1) {
  99.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  100.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  101.     }
  102.     arg_ptrs [1] = mobj1;
  103.     void * a2 = p2;
  104.     arg_ptrs [2] = &a2;
  105.  
  106.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  107.  
  108.     return;
  109. }
  110.  
  111.  
  112. static UIWindow * native_to_managed_trampoline_4 (id self, SEL _cmd, MonoMethod **managed_method_ptr, const char *r0, const char *r1)
  113. {
  114.     MonoMethod *managed_method = *managed_method_ptr;
  115.     void *arg_ptrs [0];
  116.     MonoObject *mthis;
  117.     if (mono_domain_get () == NULL)
  118.         mono_jit_thread_attach (NULL);
  119.     mthis = NULL;
  120.     if (self) {
  121.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  122.     }
  123.     if (!managed_method) {
  124.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r0, r1, 0, NULL));
  125.         *managed_method_ptr = managed_method;
  126.     }
  127.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  128.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  129.  
  130.     UIWindow * res;
  131.     if (!retval) {
  132.         res = NULL;
  133.     } else {
  134.         id retobj;
  135.         retobj = xamarin_get_nsobject_handle (retval);
  136.         xamarin_framework_peer_lock ();
  137.         [retobj retain];
  138.         xamarin_framework_peer_unlock ();
  139.         [retobj autorelease];
  140.         mt_dummy_use (retval);
  141.         res = retobj;
  142.     }
  143.  
  144.     return res;
  145. }
  146.  
  147.  
  148. static void native_to_managed_trampoline_5 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIWindow * p0, const char *r0, const char *r1, const char *r2)
  149. {
  150.     MonoMethod *managed_method = *managed_method_ptr;
  151.     void *arg_ptrs [1];
  152.     MonoObject *mthis;
  153.     if (mono_domain_get () == NULL)
  154.         mono_jit_thread_attach (NULL);
  155.     mthis = NULL;
  156.     if (self) {
  157.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  158.     }
  159.     if (!managed_method) {
  160.         const char *paramptr[1] = { r0 };
  161.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  162.         *managed_method_ptr = managed_method;
  163.     }
  164.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  165.     NSObject *nsobj0 = (NSObject *) p0;
  166.     MonoObject *mobj0 = NULL;
  167.     int32_t created0 = false;
  168.     if (nsobj0) {
  169.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  170.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  171.     }
  172.     arg_ptrs [0] = mobj0;
  173.  
  174.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  175.  
  176.     return;
  177. }
  178.  
  179.  
  180. static BOOL native_to_managed_trampoline_6 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, NSDictionary * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  181. {
  182.     MonoMethod *managed_method = *managed_method_ptr;
  183.     void *arg_ptrs [2];
  184.     MonoObject *mthis;
  185.     if (mono_domain_get () == NULL)
  186.         mono_jit_thread_attach (NULL);
  187.     mthis = NULL;
  188.     if (self) {
  189.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  190.     }
  191.     if (!managed_method) {
  192.         const char *paramptr[2] = { r0, r1 };
  193.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  194.         *managed_method_ptr = managed_method;
  195.     }
  196.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  197.     NSObject *nsobj0 = (NSObject *) p0;
  198.     MonoObject *mobj0 = NULL;
  199.     int32_t created0 = false;
  200.     if (nsobj0) {
  201.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  202.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  203.     }
  204.     arg_ptrs [0] = mobj0;
  205.     NSObject *nsobj1 = (NSObject *) p1;
  206.     MonoObject *mobj1 = NULL;
  207.     int32_t created1 = false;
  208.     if (nsobj1) {
  209.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  210.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  211.     }
  212.     arg_ptrs [1] = mobj1;
  213.  
  214.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  215.  
  216.     BOOL res;
  217.     res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
  218.  
  219.     return res;
  220. }
  221.  
  222.  
  223. static void native_to_managed_trampoline_7 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, const char *r0, const char *r1, const char *r2)
  224. {
  225.     MonoMethod *managed_method = *managed_method_ptr;
  226.     void *arg_ptrs [1];
  227.     MonoObject *mthis;
  228.     if (mono_domain_get () == NULL)
  229.         mono_jit_thread_attach (NULL);
  230.     mthis = NULL;
  231.     if (self) {
  232.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  233.     }
  234.     if (!managed_method) {
  235.         const char *paramptr[1] = { r0 };
  236.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  237.         *managed_method_ptr = managed_method;
  238.     }
  239.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  240.     NSObject *nsobj0 = (NSObject *) p0;
  241.     MonoObject *mobj0 = NULL;
  242.     int32_t created0 = false;
  243.     if (nsobj0) {
  244.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  245.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  246.     }
  247.     arg_ptrs [0] = mobj0;
  248.  
  249.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  250.  
  251.     return;
  252. }
  253.  
  254.  
  255. static id native_to_managed_trampoline_8 (id self, SEL _cmd, MonoMethod **managed_method_ptr, const char *r0, const char *r1, bool* call_super)
  256. {
  257.     MonoMethod *managed_method = *managed_method_ptr;
  258.     void *arg_ptrs [0];
  259.     MonoObject *mthis;
  260.     if (mono_domain_get () == NULL)
  261.         mono_jit_thread_attach (NULL);
  262.     if (xamarin_try_get_nsobject (self)) {
  263.         *call_super = true;
  264.         return self;
  265.     }
  266.     if (!managed_method) {
  267.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r0, r1, 0, NULL));
  268.         *managed_method_ptr = managed_method;
  269.     }
  270.     mthis = mono_object_new (mono_domain_get (), mono_method_get_class (managed_method));
  271.     uint8_t flags = NSObjectFlagsNativeRef;
  272.     xamarin_set_nsobject_handle (mthis, self);
  273.     xamarin_set_nsobject_flags (mthis, flags);
  274.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  275.     xamarin_create_managed_ref (self, mthis, true);
  276.  
  277.     return self;
  278. }
  279.  
  280.  
  281. static void native_to_managed_trampoline_9 (id self, SEL _cmd, MonoMethod **managed_method_ptr, BOOL p0, const char *r0, const char *r1, const char *r2)
  282. {
  283.     MonoMethod *managed_method = *managed_method_ptr;
  284.     void *arg_ptrs [1];
  285.     MonoObject *mthis;
  286.     if (mono_domain_get () == NULL)
  287.         mono_jit_thread_attach (NULL);
  288.     mthis = NULL;
  289.     if (self) {
  290.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  291.     }
  292.     if (!managed_method) {
  293.         const char *paramptr[1] = { r0 };
  294.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  295.         *managed_method_ptr = managed_method;
  296.     }
  297.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  298.     arg_ptrs [0] = &p0;
  299.  
  300.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  301.  
  302.     return;
  303. }
  304.  
  305.  
  306. static void native_to_managed_trampoline_10 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSObject * p0, const char *r0, const char *r1, const char *r2)
  307. {
  308.     MonoMethod *managed_method = *managed_method_ptr;
  309.     void *arg_ptrs [1];
  310.     MonoObject *mthis;
  311.     if (mono_domain_get () == NULL)
  312.         mono_jit_thread_attach (NULL);
  313.     mthis = NULL;
  314.     if (self) {
  315.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  316.     }
  317.     if (!managed_method) {
  318.         const char *paramptr[1] = { r0 };
  319.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  320.         *managed_method_ptr = managed_method;
  321.     }
  322.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  323.     NSObject *nsobj0 = (NSObject *) p0;
  324.     MonoObject *mobj0 = NULL;
  325.     int32_t created0 = false;
  326.     if (nsobj0) {
  327.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  328.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  329.     }
  330.     arg_ptrs [0] = mobj0;
  331.  
  332.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  333.  
  334.     return;
  335. }
  336.  
  337.  
  338. static void native_to_managed_trampoline_11 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSObject * p0, const char *r0, const char *r1, const char *r2)
  339. {
  340.     MonoMethod *managed_method = *managed_method_ptr;
  341.     void *arg_ptrs [1];
  342.     if (mono_domain_get () == NULL)
  343.         mono_jit_thread_attach (NULL);
  344.     if (!managed_method) {
  345.         const char *paramptr[1] = { r0 };
  346.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  347.         *managed_method_ptr = managed_method;
  348.     }
  349.     NSObject *nsobj0 = (NSObject *) p0;
  350.     MonoObject *mobj0 = NULL;
  351.     int32_t created0 = false;
  352.     if (nsobj0) {
  353.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  354.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  355.     }
  356.     arg_ptrs [0] = mobj0;
  357.  
  358.     mono_runtime_invoke (managed_method, NULL, arg_ptrs, NULL);
  359.  
  360.     return;
  361. }
  362.  
  363.  
  364. static void native_to_managed_trampoline_12 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, const char *r0, const char *r1, const char *r2)
  365. {
  366.     MonoMethod *managed_method = *managed_method_ptr;
  367.     void *arg_ptrs [1];
  368.     MonoObject *mthis;
  369.     if (mono_domain_get () == NULL)
  370.         mono_jit_thread_attach (NULL);
  371.     mthis = NULL;
  372.     if (self) {
  373.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  374.     }
  375.     if (!managed_method) {
  376.         const char *paramptr[1] = { r0 };
  377.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  378.         *managed_method_ptr = managed_method;
  379.     }
  380.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  381.     NSObject *nsobj0 = (NSObject *) p0;
  382.     MonoObject *mobj0 = NULL;
  383.     int32_t created0 = false;
  384.     if (nsobj0) {
  385.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  386.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  387.     }
  388.     arg_ptrs [0] = mobj0;
  389.  
  390.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  391.  
  392.     return;
  393. }
  394.  
  395.  
  396. static void native_to_managed_trampoline_13 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, BOOL p1, const char *r0, const char *r1, const char *r2, const char *r3)
  397. {
  398.     MonoMethod *managed_method = *managed_method_ptr;
  399.     void *arg_ptrs [2];
  400.     MonoObject *mthis;
  401.     if (mono_domain_get () == NULL)
  402.         mono_jit_thread_attach (NULL);
  403.     mthis = NULL;
  404.     if (self) {
  405.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  406.     }
  407.     if (!managed_method) {
  408.         const char *paramptr[2] = { r0, r1 };
  409.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  410.         *managed_method_ptr = managed_method;
  411.     }
  412.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  413.     NSObject *nsobj0 = (NSObject *) p0;
  414.     MonoObject *mobj0 = NULL;
  415.     int32_t created0 = false;
  416.     if (nsobj0) {
  417.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  418.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  419.     }
  420.     arg_ptrs [0] = mobj0;
  421.     arg_ptrs [1] = &p1;
  422.  
  423.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  424.  
  425.     return;
  426. }
  427.  
  428.  
  429. static BOOL native_to_managed_trampoline_14 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, const char *r0, const char *r1, const char *r2)
  430. {
  431.     MonoMethod *managed_method = *managed_method_ptr;
  432.     void *arg_ptrs [1];
  433.     MonoObject *mthis;
  434.     if (mono_domain_get () == NULL)
  435.         mono_jit_thread_attach (NULL);
  436.     mthis = NULL;
  437.     if (self) {
  438.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  439.     }
  440.     if (!managed_method) {
  441.         const char *paramptr[1] = { r0 };
  442.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  443.         *managed_method_ptr = managed_method;
  444.     }
  445.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  446.     NSObject *nsobj0 = (NSObject *) p0;
  447.     MonoObject *mobj0 = NULL;
  448.     int32_t created0 = false;
  449.     if (nsobj0) {
  450.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  451.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  452.     }
  453.     arg_ptrs [0] = mobj0;
  454.  
  455.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  456.  
  457.     BOOL res;
  458.     res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
  459.  
  460.     return res;
  461. }
  462.  
  463.  
  464. static UIView * native_to_managed_trampoline_15 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, const char *r0, const char *r1, const char *r2)
  465. {
  466.     MonoMethod *managed_method = *managed_method_ptr;
  467.     void *arg_ptrs [1];
  468.     MonoObject *mthis;
  469.     if (mono_domain_get () == NULL)
  470.         mono_jit_thread_attach (NULL);
  471.     mthis = NULL;
  472.     if (self) {
  473.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  474.     }
  475.     if (!managed_method) {
  476.         const char *paramptr[1] = { r0 };
  477.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  478.         *managed_method_ptr = managed_method;
  479.     }
  480.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  481.     NSObject *nsobj0 = (NSObject *) p0;
  482.     MonoObject *mobj0 = NULL;
  483.     int32_t created0 = false;
  484.     if (nsobj0) {
  485.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  486.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  487.     }
  488.     arg_ptrs [0] = mobj0;
  489.  
  490.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  491.  
  492.     UIView * res;
  493.     if (!retval) {
  494.         res = NULL;
  495.     } else {
  496.         id retobj;
  497.         retobj = xamarin_get_nsobject_handle (retval);
  498.         xamarin_framework_peer_lock ();
  499.         [retobj retain];
  500.         xamarin_framework_peer_unlock ();
  501.         [retobj autorelease];
  502.         mt_dummy_use (retval);
  503.         res = retobj;
  504.     }
  505.  
  506.     return res;
  507. }
  508.  
  509.  
  510. static void native_to_managed_trampoline_16 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, CGPoint p1, CGPoint* p2, const char *r0, const char *r1, const char *r2, const char *r3, const char *r4)
  511. {
  512.     MonoMethod *managed_method = *managed_method_ptr;
  513.     void *arg_ptrs [3];
  514.     MonoObject *mthis;
  515.     if (mono_domain_get () == NULL)
  516.         mono_jit_thread_attach (NULL);
  517.     mthis = NULL;
  518.     if (self) {
  519.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  520.     }
  521.     if (!managed_method) {
  522.         const char *paramptr[3] = { r0, r1, r2 };
  523.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r3, r4, 3, paramptr));
  524.         *managed_method_ptr = managed_method;
  525.     }
  526.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  527.     NSObject *nsobj0 = (NSObject *) p0;
  528.     MonoObject *mobj0 = NULL;
  529.     int32_t created0 = false;
  530.     if (nsobj0) {
  531.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  532.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  533.     }
  534.     arg_ptrs [0] = mobj0;
  535.     arg_ptrs [1] = &p1;
  536.     arg_ptrs [2] = p2;
  537.  
  538.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  539.  
  540.     return;
  541. }
  542.  
  543.  
  544. static void native_to_managed_trampoline_17 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, UIView * p1, CGFloat p2, const char *r0, const char *r1, const char *r2, const char *r3, const char *r4)
  545. {
  546.     MonoMethod *managed_method = *managed_method_ptr;
  547.     void *arg_ptrs [3];
  548.     MonoObject *mthis;
  549.     if (mono_domain_get () == NULL)
  550.         mono_jit_thread_attach (NULL);
  551.     mthis = NULL;
  552.     if (self) {
  553.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  554.     }
  555.     if (!managed_method) {
  556.         const char *paramptr[3] = { r0, r1, r2 };
  557.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r3, r4, 3, paramptr));
  558.         *managed_method_ptr = managed_method;
  559.     }
  560.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  561.     NSObject *nsobj0 = (NSObject *) p0;
  562.     MonoObject *mobj0 = NULL;
  563.     int32_t created0 = false;
  564.     if (nsobj0) {
  565.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  566.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  567.     }
  568.     arg_ptrs [0] = mobj0;
  569.     NSObject *nsobj1 = (NSObject *) p1;
  570.     MonoObject *mobj1 = NULL;
  571.     int32_t created1 = false;
  572.     if (nsobj1) {
  573.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  574.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  575.     }
  576.     arg_ptrs [1] = mobj1;
  577.     arg_ptrs [2] = &p2;
  578.  
  579.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  580.  
  581.     return;
  582. }
  583.  
  584.  
  585. static void native_to_managed_trampoline_18 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, UIView * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  586. {
  587.     MonoMethod *managed_method = *managed_method_ptr;
  588.     void *arg_ptrs [2];
  589.     MonoObject *mthis;
  590.     if (mono_domain_get () == NULL)
  591.         mono_jit_thread_attach (NULL);
  592.     mthis = NULL;
  593.     if (self) {
  594.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  595.     }
  596.     if (!managed_method) {
  597.         const char *paramptr[2] = { r0, r1 };
  598.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  599.         *managed_method_ptr = managed_method;
  600.     }
  601.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  602.     NSObject *nsobj0 = (NSObject *) p0;
  603.     MonoObject *mobj0 = NULL;
  604.     int32_t created0 = false;
  605.     if (nsobj0) {
  606.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  607.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  608.     }
  609.     arg_ptrs [0] = mobj0;
  610.     NSObject *nsobj1 = (NSObject *) p1;
  611.     MonoObject *mobj1 = NULL;
  612.     int32_t created1 = false;
  613.     if (nsobj1) {
  614.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  615.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  616.     }
  617.     arg_ptrs [1] = mobj1;
  618.  
  619.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  620.  
  621.     return;
  622. }
  623.  
  624.  
  625. static void native_to_managed_trampoline_19 (id self, SEL _cmd, MonoMethod **managed_method_ptr, BOOL p0, BOOL p1, const char *r0, const char *r1, const char *r2, const char *r3)
  626. {
  627.     MonoMethod *managed_method = *managed_method_ptr;
  628.     void *arg_ptrs [2];
  629.     MonoObject *mthis;
  630.     if (mono_domain_get () == NULL)
  631.         mono_jit_thread_attach (NULL);
  632.     mthis = NULL;
  633.     if (self) {
  634.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  635.     }
  636.     if (!managed_method) {
  637.         const char *paramptr[2] = { r0, r1 };
  638.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  639.         *managed_method_ptr = managed_method;
  640.     }
  641.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  642.     arg_ptrs [0] = &p0;
  643.     arg_ptrs [1] = &p1;
  644.  
  645.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  646.  
  647.     return;
  648. }
  649.  
  650.  
  651. static id native_to_managed_trampoline_20 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSInteger p0, NSString * p1, const char *r0, const char *r1, const char *r2, const char *r3, bool* call_super)
  652. {
  653.     MonoMethod *managed_method = *managed_method_ptr;
  654.     void *arg_ptrs [2];
  655.     MonoObject *mthis;
  656.     if (mono_domain_get () == NULL)
  657.         mono_jit_thread_attach (NULL);
  658.     if (xamarin_try_get_nsobject (self)) {
  659.         *call_super = true;
  660.         return self;
  661.     }
  662.     if (!managed_method) {
  663.         const char *paramptr[2] = { r0, r1 };
  664.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  665.         *managed_method_ptr = managed_method;
  666.     }
  667.     long long nativeEnum0 = p0;
  668.     arg_ptrs [0] = &nativeEnum0;
  669.     arg_ptrs [1] = p1 ? mono_string_new (mono_domain_get (), [p1 UTF8String]) : NULL;
  670.  
  671.     mthis = mono_object_new (mono_domain_get (), mono_method_get_class (managed_method));
  672.     uint8_t flags = NSObjectFlagsNativeRef;
  673.     xamarin_set_nsobject_handle (mthis, self);
  674.     xamarin_set_nsobject_flags (mthis, flags);
  675.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  676.     xamarin_create_managed_ref (self, mthis, true);
  677.  
  678.     return self;
  679. }
  680.  
  681.  
  682. static BOOL native_to_managed_trampoline_21 (id self, SEL _cmd, MonoMethod **managed_method_ptr, const char *r0, const char *r1)
  683. {
  684.     MonoMethod *managed_method = *managed_method_ptr;
  685.     void *arg_ptrs [0];
  686.     MonoObject *mthis;
  687.     if (mono_domain_get () == NULL)
  688.         mono_jit_thread_attach (NULL);
  689.     mthis = NULL;
  690.     if (self) {
  691.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  692.     }
  693.     if (!managed_method) {
  694.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r0, r1, 0, NULL));
  695.         *managed_method_ptr = managed_method;
  696.     }
  697.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  698.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  699.  
  700.     BOOL res;
  701.     res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
  702.  
  703.     return res;
  704. }
  705.  
  706.  
  707. static id native_to_managed_trampoline_22 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGRect p0, const char *r0, const char *r1, const char *r2, bool* call_super)
  708. {
  709.     MonoMethod *managed_method = *managed_method_ptr;
  710.     void *arg_ptrs [1];
  711.     MonoObject *mthis;
  712.     if (mono_domain_get () == NULL)
  713.         mono_jit_thread_attach (NULL);
  714.     if (xamarin_try_get_nsobject (self)) {
  715.         *call_super = true;
  716.         return self;
  717.     }
  718.     if (!managed_method) {
  719.         const char *paramptr[1] = { r0 };
  720.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  721.         *managed_method_ptr = managed_method;
  722.     }
  723.     arg_ptrs [0] = &p0;
  724.  
  725.     mthis = mono_object_new (mono_domain_get (), mono_method_get_class (managed_method));
  726.     uint8_t flags = NSObjectFlagsNativeRef;
  727.     xamarin_set_nsobject_handle (mthis, self);
  728.     xamarin_set_nsobject_flags (mthis, flags);
  729.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  730.     xamarin_create_managed_ref (self, mthis, true);
  731.  
  732.     return self;
  733. }
  734.  
  735.  
  736. static void native_to_managed_trampoline_23 (id self, SEL _cmd, MonoMethod **managed_method_ptr, PHChange * p0, const char *r0, const char *r1, const char *r2)
  737. {
  738.     MonoMethod *managed_method = *managed_method_ptr;
  739.     void *arg_ptrs [1];
  740.     MonoObject *mthis;
  741.     if (mono_domain_get () == NULL)
  742.         mono_jit_thread_attach (NULL);
  743.     mthis = NULL;
  744.     if (self) {
  745.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  746.     }
  747.     if (!managed_method) {
  748.         const char *paramptr[1] = { r0 };
  749.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  750.         *managed_method_ptr = managed_method;
  751.     }
  752.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  753.     NSObject *nsobj0 = (NSObject *) p0;
  754.     MonoObject *mobj0 = NULL;
  755.     int32_t created0 = false;
  756.     if (nsobj0) {
  757.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  758.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  759.     }
  760.     arg_ptrs [0] = mobj0;
  761.  
  762.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  763.  
  764.     return;
  765. }
  766.  
  767.  
  768. static NSInteger native_to_managed_trampoline_24 (id self, SEL _cmd, MonoMethod **managed_method_ptr, const char *r0, const char *r1)
  769. {
  770.     MonoMethod *managed_method = *managed_method_ptr;
  771.     void *arg_ptrs [0];
  772.     MonoObject *mthis;
  773.     if (mono_domain_get () == NULL)
  774.         mono_jit_thread_attach (NULL);
  775.     mthis = NULL;
  776.     if (self) {
  777.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  778.     }
  779.     if (!managed_method) {
  780.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r0, r1, 0, NULL));
  781.         *managed_method_ptr = managed_method;
  782.     }
  783.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  784.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  785.  
  786.     NSInteger res;
  787.     res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
  788.  
  789.     return res;
  790. }
  791.  
  792.  
  793. static void native_to_managed_trampoline_25 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSInteger p0, double p1, const char *r0, const char *r1, const char *r2, const char *r3)
  794. {
  795.     MonoMethod *managed_method = *managed_method_ptr;
  796.     void *arg_ptrs [2];
  797.     MonoObject *mthis;
  798.     if (mono_domain_get () == NULL)
  799.         mono_jit_thread_attach (NULL);
  800.     mthis = NULL;
  801.     if (self) {
  802.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  803.     }
  804.     if (!managed_method) {
  805.         const char *paramptr[2] = { r0, r1 };
  806.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  807.         *managed_method_ptr = managed_method;
  808.     }
  809.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  810.     long long nativeEnum0 = p0;
  811.     arg_ptrs [0] = &nativeEnum0;
  812.     arg_ptrs [1] = &p1;
  813.  
  814.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  815.  
  816.     return;
  817. }
  818.  
  819.  
  820. static NSUInteger native_to_managed_trampoline_26 (id self, SEL _cmd, MonoMethod **managed_method_ptr, const char *r0, const char *r1)
  821. {
  822.     MonoMethod *managed_method = *managed_method_ptr;
  823.     void *arg_ptrs [0];
  824.     MonoObject *mthis;
  825.     if (mono_domain_get () == NULL)
  826.         mono_jit_thread_attach (NULL);
  827.     mthis = NULL;
  828.     if (self) {
  829.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  830.     }
  831.     if (!managed_method) {
  832.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r0, r1, 0, NULL));
  833.         *managed_method_ptr = managed_method;
  834.     }
  835.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  836.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  837.  
  838.     NSUInteger res;
  839.     res = *(NSUInteger *) mono_object_unbox ((MonoObject *) retval);
  840.  
  841.     return res;
  842. }
  843.  
  844.  
  845. static NSInteger native_to_managed_trampoline_27 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, const char *r0, const char *r1, const char *r2)
  846. {
  847.     MonoMethod *managed_method = *managed_method_ptr;
  848.     void *arg_ptrs [1];
  849.     MonoObject *mthis;
  850.     if (mono_domain_get () == NULL)
  851.         mono_jit_thread_attach (NULL);
  852.     mthis = NULL;
  853.     if (self) {
  854.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  855.     }
  856.     if (!managed_method) {
  857.         const char *paramptr[1] = { r0 };
  858.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  859.         *managed_method_ptr = managed_method;
  860.     }
  861.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  862.     NSObject *nsobj0 = (NSObject *) p0;
  863.     MonoObject *mobj0 = NULL;
  864.     int32_t created0 = false;
  865.     if (nsobj0) {
  866.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  867.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  868.     }
  869.     arg_ptrs [0] = mobj0;
  870.  
  871.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  872.  
  873.     NSInteger res;
  874.     res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
  875.  
  876.     return res;
  877. }
  878.  
  879.  
  880. static UICollectionViewCell * native_to_managed_trampoline_28 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSIndexPath * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  881. {
  882.     MonoMethod *managed_method = *managed_method_ptr;
  883.     void *arg_ptrs [2];
  884.     MonoObject *mthis;
  885.     if (mono_domain_get () == NULL)
  886.         mono_jit_thread_attach (NULL);
  887.     mthis = NULL;
  888.     if (self) {
  889.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  890.     }
  891.     if (!managed_method) {
  892.         const char *paramptr[2] = { r0, r1 };
  893.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  894.         *managed_method_ptr = managed_method;
  895.     }
  896.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  897.     NSObject *nsobj0 = (NSObject *) p0;
  898.     MonoObject *mobj0 = NULL;
  899.     int32_t created0 = false;
  900.     if (nsobj0) {
  901.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  902.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  903.     }
  904.     arg_ptrs [0] = mobj0;
  905.     NSObject *nsobj1 = (NSObject *) p1;
  906.     MonoObject *mobj1 = NULL;
  907.     int32_t created1 = false;
  908.     if (nsobj1) {
  909.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  910.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  911.     }
  912.     arg_ptrs [1] = mobj1;
  913.  
  914.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  915.  
  916.     UICollectionViewCell * res;
  917.     if (!retval) {
  918.         res = NULL;
  919.     } else {
  920.         id retobj;
  921.         retobj = xamarin_get_nsobject_handle (retval);
  922.         xamarin_framework_peer_lock ();
  923.         [retobj retain];
  924.         xamarin_framework_peer_unlock ();
  925.         [retobj autorelease];
  926.         mt_dummy_use (retval);
  927.         res = retobj;
  928.     }
  929.  
  930.     return res;
  931. }
  932.  
  933.  
  934. static NSInteger native_to_managed_trampoline_29 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSInteger p1, const char *r0, const char *r1, const char *r2, const char *r3)
  935. {
  936.     MonoMethod *managed_method = *managed_method_ptr;
  937.     void *arg_ptrs [2];
  938.     MonoObject *mthis;
  939.     if (mono_domain_get () == NULL)
  940.         mono_jit_thread_attach (NULL);
  941.     mthis = NULL;
  942.     if (self) {
  943.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  944.     }
  945.     if (!managed_method) {
  946.         const char *paramptr[2] = { r0, r1 };
  947.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  948.         *managed_method_ptr = managed_method;
  949.     }
  950.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  951.     NSObject *nsobj0 = (NSObject *) p0;
  952.     MonoObject *mobj0 = NULL;
  953.     int32_t created0 = false;
  954.     if (nsobj0) {
  955.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  956.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  957.     }
  958.     arg_ptrs [0] = mobj0;
  959.     arg_ptrs [1] = &p1;
  960.  
  961.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  962.  
  963.     NSInteger res;
  964.     res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
  965.  
  966.     return res;
  967. }
  968.  
  969.  
  970. static void native_to_managed_trampoline_30 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSIndexPath * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  971. {
  972.     MonoMethod *managed_method = *managed_method_ptr;
  973.     void *arg_ptrs [2];
  974.     MonoObject *mthis;
  975.     if (mono_domain_get () == NULL)
  976.         mono_jit_thread_attach (NULL);
  977.     mthis = NULL;
  978.     if (self) {
  979.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  980.     }
  981.     if (!managed_method) {
  982.         const char *paramptr[2] = { r0, r1 };
  983.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  984.         *managed_method_ptr = managed_method;
  985.     }
  986.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  987.     NSObject *nsobj0 = (NSObject *) p0;
  988.     MonoObject *mobj0 = NULL;
  989.     int32_t created0 = false;
  990.     if (nsobj0) {
  991.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  992.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  993.     }
  994.     arg_ptrs [0] = mobj0;
  995.     NSObject *nsobj1 = (NSObject *) p1;
  996.     MonoObject *mobj1 = NULL;
  997.     int32_t created1 = false;
  998.     if (nsobj1) {
  999.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  1000.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  1001.     }
  1002.     arg_ptrs [1] = mobj1;
  1003.  
  1004.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1005.  
  1006.     return;
  1007. }
  1008.  
  1009.  
  1010. static BOOL native_to_managed_trampoline_31 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSIndexPath * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  1011. {
  1012.     MonoMethod *managed_method = *managed_method_ptr;
  1013.     void *arg_ptrs [2];
  1014.     MonoObject *mthis;
  1015.     if (mono_domain_get () == NULL)
  1016.         mono_jit_thread_attach (NULL);
  1017.     mthis = NULL;
  1018.     if (self) {
  1019.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1020.     }
  1021.     if (!managed_method) {
  1022.         const char *paramptr[2] = { r0, r1 };
  1023.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  1024.         *managed_method_ptr = managed_method;
  1025.     }
  1026.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1027.     NSObject *nsobj0 = (NSObject *) p0;
  1028.     MonoObject *mobj0 = NULL;
  1029.     int32_t created0 = false;
  1030.     if (nsobj0) {
  1031.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1032.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1033.     }
  1034.     arg_ptrs [0] = mobj0;
  1035.     NSObject *nsobj1 = (NSObject *) p1;
  1036.     MonoObject *mobj1 = NULL;
  1037.     int32_t created1 = false;
  1038.     if (nsobj1) {
  1039.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  1040.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  1041.     }
  1042.     arg_ptrs [1] = mobj1;
  1043.  
  1044.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1045.  
  1046.     BOOL res;
  1047.     res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
  1048.  
  1049.     return res;
  1050. }
  1051.  
  1052.  
  1053. static void native_to_managed_trampoline_32 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIImagePickerController * p0, NSDictionary * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  1054. {
  1055.     MonoMethod *managed_method = *managed_method_ptr;
  1056.     void *arg_ptrs [2];
  1057.     MonoObject *mthis;
  1058.     if (mono_domain_get () == NULL)
  1059.         mono_jit_thread_attach (NULL);
  1060.     mthis = NULL;
  1061.     if (self) {
  1062.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1063.     }
  1064.     if (!managed_method) {
  1065.         const char *paramptr[2] = { r0, r1 };
  1066.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  1067.         *managed_method_ptr = managed_method;
  1068.     }
  1069.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1070.     NSObject *nsobj0 = (NSObject *) p0;
  1071.     MonoObject *mobj0 = NULL;
  1072.     int32_t created0 = false;
  1073.     if (nsobj0) {
  1074.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1075.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1076.     }
  1077.     arg_ptrs [0] = mobj0;
  1078.     NSObject *nsobj1 = (NSObject *) p1;
  1079.     MonoObject *mobj1 = NULL;
  1080.     int32_t created1 = false;
  1081.     if (nsobj1) {
  1082.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  1083.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  1084.     }
  1085.     arg_ptrs [1] = mobj1;
  1086.  
  1087.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1088.  
  1089.     return;
  1090. }
  1091.  
  1092.  
  1093. static void native_to_managed_trampoline_33 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIImagePickerController * p0, const char *r0, const char *r1, const char *r2)
  1094. {
  1095.     MonoMethod *managed_method = *managed_method_ptr;
  1096.     void *arg_ptrs [1];
  1097.     MonoObject *mthis;
  1098.     if (mono_domain_get () == NULL)
  1099.         mono_jit_thread_attach (NULL);
  1100.     mthis = NULL;
  1101.     if (self) {
  1102.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1103.     }
  1104.     if (!managed_method) {
  1105.         const char *paramptr[1] = { r0 };
  1106.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  1107.         *managed_method_ptr = managed_method;
  1108.     }
  1109.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1110.     NSObject *nsobj0 = (NSObject *) p0;
  1111.     MonoObject *mobj0 = NULL;
  1112.     int32_t created0 = false;
  1113.     if (nsobj0) {
  1114.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1115.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1116.     }
  1117.     arg_ptrs [0] = mobj0;
  1118.  
  1119.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1120.  
  1121.     return;
  1122. }
  1123.  
  1124.  
  1125. static NSInteger native_to_managed_trampoline_34 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITableView * p0, const char *r0, const char *r1, const char *r2)
  1126. {
  1127.     MonoMethod *managed_method = *managed_method_ptr;
  1128.     void *arg_ptrs [1];
  1129.     MonoObject *mthis;
  1130.     if (mono_domain_get () == NULL)
  1131.         mono_jit_thread_attach (NULL);
  1132.     mthis = NULL;
  1133.     if (self) {
  1134.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1135.     }
  1136.     if (!managed_method) {
  1137.         const char *paramptr[1] = { r0 };
  1138.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r1, r2, 1, paramptr));
  1139.         *managed_method_ptr = managed_method;
  1140.     }
  1141.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1142.     NSObject *nsobj0 = (NSObject *) p0;
  1143.     MonoObject *mobj0 = NULL;
  1144.     int32_t created0 = false;
  1145.     if (nsobj0) {
  1146.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1147.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1148.     }
  1149.     arg_ptrs [0] = mobj0;
  1150.  
  1151.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1152.  
  1153.     NSInteger res;
  1154.     res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
  1155.  
  1156.     return res;
  1157. }
  1158.  
  1159.  
  1160. static NSInteger native_to_managed_trampoline_35 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITableView * p0, NSInteger p1, const char *r0, const char *r1, const char *r2, const char *r3)
  1161. {
  1162.     MonoMethod *managed_method = *managed_method_ptr;
  1163.     void *arg_ptrs [2];
  1164.     MonoObject *mthis;
  1165.     if (mono_domain_get () == NULL)
  1166.         mono_jit_thread_attach (NULL);
  1167.     mthis = NULL;
  1168.     if (self) {
  1169.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1170.     }
  1171.     if (!managed_method) {
  1172.         const char *paramptr[2] = { r0, r1 };
  1173.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  1174.         *managed_method_ptr = managed_method;
  1175.     }
  1176.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1177.     NSObject *nsobj0 = (NSObject *) p0;
  1178.     MonoObject *mobj0 = NULL;
  1179.     int32_t created0 = false;
  1180.     if (nsobj0) {
  1181.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1182.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1183.     }
  1184.     arg_ptrs [0] = mobj0;
  1185.     arg_ptrs [1] = &p1;
  1186.  
  1187.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1188.  
  1189.     NSInteger res;
  1190.     res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
  1191.  
  1192.     return res;
  1193. }
  1194.  
  1195.  
  1196. static UITableViewCell * native_to_managed_trampoline_36 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITableView * p0, NSIndexPath * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  1197. {
  1198.     MonoMethod *managed_method = *managed_method_ptr;
  1199.     void *arg_ptrs [2];
  1200.     MonoObject *mthis;
  1201.     if (mono_domain_get () == NULL)
  1202.         mono_jit_thread_attach (NULL);
  1203.     mthis = NULL;
  1204.     if (self) {
  1205.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1206.     }
  1207.     if (!managed_method) {
  1208.         const char *paramptr[2] = { r0, r1 };
  1209.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  1210.         *managed_method_ptr = managed_method;
  1211.     }
  1212.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1213.     NSObject *nsobj0 = (NSObject *) p0;
  1214.     MonoObject *mobj0 = NULL;
  1215.     int32_t created0 = false;
  1216.     if (nsobj0) {
  1217.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1218.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1219.     }
  1220.     arg_ptrs [0] = mobj0;
  1221.     NSObject *nsobj1 = (NSObject *) p1;
  1222.     MonoObject *mobj1 = NULL;
  1223.     int32_t created1 = false;
  1224.     if (nsobj1) {
  1225.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  1226.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  1227.     }
  1228.     arg_ptrs [1] = mobj1;
  1229.  
  1230.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1231.  
  1232.     UITableViewCell * res;
  1233.     if (!retval) {
  1234.         res = NULL;
  1235.     } else {
  1236.         id retobj;
  1237.         retobj = xamarin_get_nsobject_handle (retval);
  1238.         xamarin_framework_peer_lock ();
  1239.         [retobj retain];
  1240.         xamarin_framework_peer_unlock ();
  1241.         [retobj autorelease];
  1242.         mt_dummy_use (retval);
  1243.         res = retobj;
  1244.     }
  1245.  
  1246.     return res;
  1247. }
  1248.  
  1249.  
  1250. static void native_to_managed_trampoline_37 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITableView * p0, NSIndexPath * p1, const char *r0, const char *r1, const char *r2, const char *r3)
  1251. {
  1252.     MonoMethod *managed_method = *managed_method_ptr;
  1253.     void *arg_ptrs [2];
  1254.     MonoObject *mthis;
  1255.     if (mono_domain_get () == NULL)
  1256.         mono_jit_thread_attach (NULL);
  1257.     mthis = NULL;
  1258.     if (self) {
  1259.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1260.     }
  1261.     if (!managed_method) {
  1262.         const char *paramptr[2] = { r0, r1 };
  1263.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  1264.         *managed_method_ptr = managed_method;
  1265.     }
  1266.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1267.     NSObject *nsobj0 = (NSObject *) p0;
  1268.     MonoObject *mobj0 = NULL;
  1269.     int32_t created0 = false;
  1270.     if (nsobj0) {
  1271.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1272.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1273.     }
  1274.     arg_ptrs [0] = mobj0;
  1275.     NSObject *nsobj1 = (NSObject *) p1;
  1276.     MonoObject *mobj1 = NULL;
  1277.     int32_t created1 = false;
  1278.     if (nsobj1) {
  1279.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  1280.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  1281.     }
  1282.     arg_ptrs [1] = mobj1;
  1283.  
  1284.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1285.  
  1286.     return;
  1287. }
  1288.  
  1289.  
  1290. static void native_to_managed_trampoline_38 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITableView * p0, UIView * p1, NSInteger p2, const char *r0, const char *r1, const char *r2, const char *r3, const char *r4)
  1291. {
  1292.     MonoMethod *managed_method = *managed_method_ptr;
  1293.     void *arg_ptrs [3];
  1294.     MonoObject *mthis;
  1295.     if (mono_domain_get () == NULL)
  1296.         mono_jit_thread_attach (NULL);
  1297.     mthis = NULL;
  1298.     if (self) {
  1299.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1300.     }
  1301.     if (!managed_method) {
  1302.         const char *paramptr[3] = { r0, r1, r2 };
  1303.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r3, r4, 3, paramptr));
  1304.         *managed_method_ptr = managed_method;
  1305.     }
  1306.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1307.     NSObject *nsobj0 = (NSObject *) p0;
  1308.     MonoObject *mobj0 = NULL;
  1309.     int32_t created0 = false;
  1310.     if (nsobj0) {
  1311.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1312.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1313.     }
  1314.     arg_ptrs [0] = mobj0;
  1315.     NSObject *nsobj1 = (NSObject *) p1;
  1316.     MonoObject *mobj1 = NULL;
  1317.     int32_t created1 = false;
  1318.     if (nsobj1) {
  1319.         MonoType *paramtype1 = xamarin_get_parameter_type (managed_method, 1);
  1320.         mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1);
  1321.     }
  1322.     arg_ptrs [1] = mobj1;
  1323.     arg_ptrs [2] = &p2;
  1324.  
  1325.     mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1326.  
  1327.     return;
  1328. }
  1329.  
  1330.  
  1331. static NSString * native_to_managed_trampoline_39 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITableView * p0, NSInteger p1, const char *r0, const char *r1, const char *r2, const char *r3)
  1332. {
  1333.     MonoMethod *managed_method = *managed_method_ptr;
  1334.     void *arg_ptrs [2];
  1335.     MonoObject *mthis;
  1336.     if (mono_domain_get () == NULL)
  1337.         mono_jit_thread_attach (NULL);
  1338.     mthis = NULL;
  1339.     if (self) {
  1340.         mthis = xamarin_get_managed_object_for_ptr_fast (self);
  1341.     }
  1342.     if (!managed_method) {
  1343.         const char *paramptr[2] = { r0, r1 };
  1344.         managed_method = xamarin_get_reflection_method_method (xamarin_get_method_direct(r2, r3, 2, paramptr));
  1345.         *managed_method_ptr = managed_method;
  1346.     }
  1347.     xamarin_check_for_gced_object (mthis, _cmd, self, managed_method);
  1348.     NSObject *nsobj0 = (NSObject *) p0;
  1349.     MonoObject *mobj0 = NULL;
  1350.     int32_t created0 = false;
  1351.     if (nsobj0) {
  1352.         MonoType *paramtype0 = xamarin_get_parameter_type (managed_method, 0);
  1353.         mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0);
  1354.     }
  1355.     arg_ptrs [0] = mobj0;
  1356.     arg_ptrs [1] = &p1;
  1357.  
  1358.     MonoObject * retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
  1359.  
  1360.     NSString * res;
  1361.     if (!retval) {
  1362.         res = NULL;
  1363.     } else {
  1364.         char *str = mono_string_to_utf8 ((MonoString *) retval);
  1365.         NSString *nsstr = [[NSString alloc] initWithUTF8String:str];
  1366.         [nsstr autorelease];
  1367.         mono_free (str);
  1368.         res = nsstr;
  1369.     }
  1370.  
  1371.     return res;
  1372. }
  1373.  
  1374.  
  1375.  
  1376. @interface UIKit_UIControlEventProxy : NSObject {
  1377.     XamarinObject __monoObjectGCHandle;
  1378. }
  1379.     -(void) release;
  1380.     -(id) retain;
  1381.     -(int) xamarinGetGCHandle;
  1382.     -(void) xamarinSetGCHandle: (int) gchandle;
  1383.     -(void) BridgeSelector;
  1384.     -(BOOL) conformsToProtocol:(void *)p0;
  1385. @end
  1386. @implementation UIKit_UIControlEventProxy { }
  1387.     -(void) release
  1388.     {
  1389.         xamarin_release_trampoline (self, _cmd);
  1390.     }
  1391.  
  1392.     -(id) retain
  1393.     {
  1394.         return xamarin_retain_trampoline (self, _cmd);
  1395.     }
  1396.  
  1397.     -(int) xamarinGetGCHandle
  1398.     {
  1399.         return __monoObjectGCHandle.gc_handle;
  1400.     }
  1401.  
  1402.     -(void) xamarinSetGCHandle: (int) gc_handle
  1403.     {
  1404.         __monoObjectGCHandle.gc_handle = gc_handle;
  1405.         __monoObjectGCHandle.native_object = self;
  1406.     }
  1407.  
  1408.  
  1409.     -(void) BridgeSelector
  1410.     {
  1411.         static MonoMethod *managed_method = NULL;
  1412.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "UIKit.UIControlEventProxy, Xamarin.iOS", "Activated");
  1413.     }
  1414.  
  1415.     -(BOOL) conformsToProtocol:(void *)p0
  1416.     {
  1417.         static MonoMethod *managed_method = NULL;
  1418.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1419.     }
  1420. @end
  1421.  
  1422. @interface __MonoTouch_UIImageStatusDispatcher : NSObject {
  1423.     XamarinObject __monoObjectGCHandle;
  1424. }
  1425.     -(void) release;
  1426.     -(id) retain;
  1427.     -(int) xamarinGetGCHandle;
  1428.     -(void) xamarinSetGCHandle: (int) gchandle;
  1429.     -(void) Xamarin_Internal__image:(UIImage *)p0 didFinishSavingWithError:(NSError *)p1 contextInfo:(void *)p2;
  1430.     -(BOOL) conformsToProtocol:(void *)p0;
  1431. @end
  1432. @implementation __MonoTouch_UIImageStatusDispatcher { }
  1433.     -(void) release
  1434.     {
  1435.         xamarin_release_trampoline (self, _cmd);
  1436.     }
  1437.  
  1438.     -(id) retain
  1439.     {
  1440.         return xamarin_retain_trampoline (self, _cmd);
  1441.     }
  1442.  
  1443.     -(int) xamarinGetGCHandle
  1444.     {
  1445.         return __monoObjectGCHandle.gc_handle;
  1446.     }
  1447.  
  1448.     -(void) xamarinSetGCHandle: (int) gc_handle
  1449.     {
  1450.         __monoObjectGCHandle.gc_handle = gc_handle;
  1451.         __monoObjectGCHandle.native_object = self;
  1452.     }
  1453.  
  1454.  
  1455.     -(void) Xamarin_Internal__image:(UIImage *)p0 didFinishSavingWithError:(NSError *)p1 contextInfo:(void *)p2
  1456.     {
  1457.         static MonoMethod *managed_method = NULL;
  1458.         native_to_managed_trampoline_3 (self, _cmd, &managed_method, p0, p1, p2, "UIKit.UIImage, Xamarin.iOS", "Foundation.NSError, Xamarin.iOS", "System.IntPtr, mscorlib", "UIKit.UIImageStatusDispatcher, Xamarin.iOS", "Callback");
  1459.     }
  1460.  
  1461.     -(BOOL) conformsToProtocol:(void *)p0
  1462.     {
  1463.         static MonoMethod *managed_method = NULL;
  1464.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1465.     }
  1466. @end
  1467.  
  1468. @interface __MonoMac_NSActionDispatcher : NSObject {
  1469.     XamarinObject __monoObjectGCHandle;
  1470. }
  1471.     -(void) release;
  1472.     -(id) retain;
  1473.     -(int) xamarinGetGCHandle;
  1474.     -(void) xamarinSetGCHandle: (int) gchandle;
  1475.     -(void) xamarinApplySelector;
  1476.     -(BOOL) conformsToProtocol:(void *)p0;
  1477. @end
  1478. @implementation __MonoMac_NSActionDispatcher { }
  1479.     -(void) release
  1480.     {
  1481.         xamarin_release_trampoline (self, _cmd);
  1482.     }
  1483.  
  1484.     -(id) retain
  1485.     {
  1486.         return xamarin_retain_trampoline (self, _cmd);
  1487.     }
  1488.  
  1489.     -(int) xamarinGetGCHandle
  1490.     {
  1491.         return __monoObjectGCHandle.gc_handle;
  1492.     }
  1493.  
  1494.     -(void) xamarinSetGCHandle: (int) gc_handle
  1495.     {
  1496.         __monoObjectGCHandle.gc_handle = gc_handle;
  1497.         __monoObjectGCHandle.native_object = self;
  1498.     }
  1499.  
  1500.  
  1501.     -(void) xamarinApplySelector
  1502.     {
  1503.         static MonoMethod *managed_method = NULL;
  1504.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "Foundation.NSActionDispatcher, Xamarin.iOS", "Apply");
  1505.     }
  1506.  
  1507.     -(BOOL) conformsToProtocol:(void *)p0
  1508.     {
  1509.         static MonoMethod *managed_method = NULL;
  1510.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1511.     }
  1512. @end
  1513.  
  1514. @interface __MonoMac_NSAsyncActionDispatcher : NSObject {
  1515.     XamarinObject __monoObjectGCHandle;
  1516. }
  1517.     -(void) release;
  1518.     -(id) retain;
  1519.     -(int) xamarinGetGCHandle;
  1520.     -(void) xamarinSetGCHandle: (int) gchandle;
  1521.     -(void) xamarinApplySelector;
  1522.     -(BOOL) conformsToProtocol:(void *)p0;
  1523. @end
  1524. @implementation __MonoMac_NSAsyncActionDispatcher { }
  1525.     -(void) release
  1526.     {
  1527.         xamarin_release_trampoline (self, _cmd);
  1528.     }
  1529.  
  1530.     -(id) retain
  1531.     {
  1532.         return xamarin_retain_trampoline (self, _cmd);
  1533.     }
  1534.  
  1535.     -(int) xamarinGetGCHandle
  1536.     {
  1537.         return __monoObjectGCHandle.gc_handle;
  1538.     }
  1539.  
  1540.     -(void) xamarinSetGCHandle: (int) gc_handle
  1541.     {
  1542.         __monoObjectGCHandle.gc_handle = gc_handle;
  1543.         __monoObjectGCHandle.native_object = self;
  1544.     }
  1545.  
  1546.  
  1547.     -(void) xamarinApplySelector
  1548.     {
  1549.         static MonoMethod *managed_method = NULL;
  1550.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "Foundation.NSAsyncActionDispatcher, Xamarin.iOS", "Apply");
  1551.     }
  1552.  
  1553.     -(BOOL) conformsToProtocol:(void *)p0
  1554.     {
  1555.         static MonoMethod *managed_method = NULL;
  1556.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1557.     }
  1558. @end
  1559.  
  1560. @protocol CALayerDelegate
  1561. @end
  1562.  
  1563. @protocol UICollectionViewSource<UICollectionViewDataSource, UICollectionViewDelegate>
  1564. @end
  1565.  
  1566. @interface AppDelegate : NSObject<UIApplicationDelegate> {
  1567.     XamarinObject __monoObjectGCHandle;
  1568. }
  1569.     -(void) release;
  1570.     -(id) retain;
  1571.     -(int) xamarinGetGCHandle;
  1572.     -(void) xamarinSetGCHandle: (int) gchandle;
  1573.     -(UIWindow *) window;
  1574.     -(void) setWindow:(UIWindow *)p0;
  1575.     -(BOOL) application:(UIApplication *)p0 didFinishLaunchingWithOptions:(NSDictionary *)p1;
  1576.     -(void) applicationWillResignActive:(UIApplication *)p0;
  1577.     -(void) applicationDidEnterBackground:(UIApplication *)p0;
  1578.     -(void) applicationWillEnterForeground:(UIApplication *)p0;
  1579.     -(void) applicationDidBecomeActive:(UIApplication *)p0;
  1580.     -(void) applicationWillTerminate:(UIApplication *)p0;
  1581.     -(BOOL) conformsToProtocol:(void *)p0;
  1582.     -(id) init;
  1583. @end
  1584. @implementation AppDelegate { }
  1585.     -(void) release
  1586.     {
  1587.         xamarin_release_trampoline (self, _cmd);
  1588.     }
  1589.  
  1590.     -(id) retain
  1591.     {
  1592.         return xamarin_retain_trampoline (self, _cmd);
  1593.     }
  1594.  
  1595.     -(int) xamarinGetGCHandle
  1596.     {
  1597.         return __monoObjectGCHandle.gc_handle;
  1598.     }
  1599.  
  1600.     -(void) xamarinSetGCHandle: (int) gc_handle
  1601.     {
  1602.         __monoObjectGCHandle.gc_handle = gc_handle;
  1603.         __monoObjectGCHandle.native_object = self;
  1604.     }
  1605.  
  1606.  
  1607.     -(UIWindow *) window
  1608.     {
  1609.         static MonoMethod *managed_method = NULL;
  1610.         return native_to_managed_trampoline_4 (self, _cmd, &managed_method, "GMPickerTest.AppDelegate, GMPickerTest", "get_Window");
  1611.     }
  1612.  
  1613.     -(void) setWindow:(UIWindow *)p0
  1614.     {
  1615.         static MonoMethod *managed_method = NULL;
  1616.         native_to_managed_trampoline_5 (self, _cmd, &managed_method, p0, "UIKit.UIWindow, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "set_Window");
  1617.     }
  1618.  
  1619.     -(BOOL) application:(UIApplication *)p0 didFinishLaunchingWithOptions:(NSDictionary *)p1
  1620.     {
  1621.         static MonoMethod *managed_method = NULL;
  1622.         return native_to_managed_trampoline_6 (self, _cmd, &managed_method, p0, p1, "UIKit.UIApplication, Xamarin.iOS", "Foundation.NSDictionary, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "FinishedLaunching");
  1623.     }
  1624.  
  1625.     -(void) applicationWillResignActive:(UIApplication *)p0
  1626.     {
  1627.         static MonoMethod *managed_method = NULL;
  1628.         native_to_managed_trampoline_7 (self, _cmd, &managed_method, p0, "UIKit.UIApplication, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "OnResignActivation");
  1629.     }
  1630.  
  1631.     -(void) applicationDidEnterBackground:(UIApplication *)p0
  1632.     {
  1633.         static MonoMethod *managed_method = NULL;
  1634.         native_to_managed_trampoline_7 (self, _cmd, &managed_method, p0, "UIKit.UIApplication, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "DidEnterBackground");
  1635.     }
  1636.  
  1637.     -(void) applicationWillEnterForeground:(UIApplication *)p0
  1638.     {
  1639.         static MonoMethod *managed_method = NULL;
  1640.         native_to_managed_trampoline_7 (self, _cmd, &managed_method, p0, "UIKit.UIApplication, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "WillEnterForeground");
  1641.     }
  1642.  
  1643.     -(void) applicationDidBecomeActive:(UIApplication *)p0
  1644.     {
  1645.         static MonoMethod *managed_method = NULL;
  1646.         native_to_managed_trampoline_7 (self, _cmd, &managed_method, p0, "UIKit.UIApplication, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "OnActivated");
  1647.     }
  1648.  
  1649.     -(void) applicationWillTerminate:(UIApplication *)p0
  1650.     {
  1651.         static MonoMethod *managed_method = NULL;
  1652.         native_to_managed_trampoline_7 (self, _cmd, &managed_method, p0, "UIKit.UIApplication, Xamarin.iOS", "GMPickerTest.AppDelegate, GMPickerTest", "WillTerminate");
  1653.     }
  1654.  
  1655.     -(BOOL) conformsToProtocol:(void *)p0
  1656.     {
  1657.         static MonoMethod *managed_method = NULL;
  1658.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1659.     }
  1660.  
  1661.     -(id) init
  1662.     {
  1663.         static MonoMethod *managed_method = NULL;
  1664.         bool call_super = false;
  1665.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "GMPickerTest.AppDelegate, GMPickerTest", ".ctor", &call_super);
  1666.         if (call_super && rv) {
  1667.             struct objc_super super = {  rv, [NSObject class] };
  1668.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  1669.         }
  1670.         return rv;
  1671.     }
  1672. @end
  1673.  
  1674. @interface ViewController : UIViewController {
  1675.     XamarinObject __monoObjectGCHandle;
  1676. }
  1677.     -(void) release;
  1678.     -(id) retain;
  1679.     -(int) xamarinGetGCHandle;
  1680.     -(void) xamarinSetGCHandle: (int) gchandle;
  1681.     -(void) viewDidLoad;
  1682.     -(void) viewDidAppear:(BOOL)p0;
  1683.     -(void) didReceiveMemoryWarning;
  1684.     -(BOOL) conformsToProtocol:(void *)p0;
  1685. @end
  1686. @implementation ViewController { }
  1687.     -(void) release
  1688.     {
  1689.         xamarin_release_trampoline (self, _cmd);
  1690.     }
  1691.  
  1692.     -(id) retain
  1693.     {
  1694.         return xamarin_retain_trampoline (self, _cmd);
  1695.     }
  1696.  
  1697.     -(int) xamarinGetGCHandle
  1698.     {
  1699.         return __monoObjectGCHandle.gc_handle;
  1700.     }
  1701.  
  1702.     -(void) xamarinSetGCHandle: (int) gc_handle
  1703.     {
  1704.         __monoObjectGCHandle.gc_handle = gc_handle;
  1705.         __monoObjectGCHandle.native_object = self;
  1706.     }
  1707.  
  1708.  
  1709.     -(void) viewDidLoad
  1710.     {
  1711.         static MonoMethod *managed_method = NULL;
  1712.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMPickerTest.ViewController, GMPickerTest", "ViewDidLoad");
  1713.     }
  1714.  
  1715.     -(void) viewDidAppear:(BOOL)p0
  1716.     {
  1717.         static MonoMethod *managed_method = NULL;
  1718.         native_to_managed_trampoline_9 (self, _cmd, &managed_method, p0, "System.Boolean, mscorlib", "GMPickerTest.ViewController, GMPickerTest", "ViewDidAppear");
  1719.     }
  1720.  
  1721.     -(void) didReceiveMemoryWarning
  1722.     {
  1723.         static MonoMethod *managed_method = NULL;
  1724.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMPickerTest.ViewController, GMPickerTest", "DidReceiveMemoryWarning");
  1725.     }
  1726.  
  1727.     -(BOOL) conformsToProtocol:(void *)p0
  1728.     {
  1729.         static MonoMethod *managed_method = NULL;
  1730.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1731.     }
  1732. @end
  1733.  
  1734. @interface __UIGestureRecognizerToken : NSObject {
  1735.     XamarinObject __monoObjectGCHandle;
  1736. }
  1737.     -(void) release;
  1738.     -(id) retain;
  1739.     -(int) xamarinGetGCHandle;
  1740.     -(void) xamarinSetGCHandle: (int) gchandle;
  1741.     -(BOOL) conformsToProtocol:(void *)p0;
  1742. @end
  1743. @implementation __UIGestureRecognizerToken { }
  1744.     -(void) release
  1745.     {
  1746.         xamarin_release_trampoline (self, _cmd);
  1747.     }
  1748.  
  1749.     -(id) retain
  1750.     {
  1751.         return xamarin_retain_trampoline (self, _cmd);
  1752.     }
  1753.  
  1754.     -(int) xamarinGetGCHandle
  1755.     {
  1756.         return __monoObjectGCHandle.gc_handle;
  1757.     }
  1758.  
  1759.     -(void) xamarinSetGCHandle: (int) gc_handle
  1760.     {
  1761.         __monoObjectGCHandle.gc_handle = gc_handle;
  1762.         __monoObjectGCHandle.native_object = self;
  1763.     }
  1764.  
  1765.  
  1766.     -(BOOL) conformsToProtocol:(void *)p0
  1767.     {
  1768.         static MonoMethod *managed_method = NULL;
  1769.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1770.     }
  1771. @end
  1772.  
  1773. @interface __UIGestureRecognizerParameterlessToken : __UIGestureRecognizerToken {
  1774. }
  1775. @end
  1776. @implementation __UIGestureRecognizerParameterlessToken { }
  1777. @end
  1778.  
  1779. @interface __UIGestureRecognizerParametrizedToken : __UIGestureRecognizerToken {
  1780. }
  1781. @end
  1782. @implementation __UIGestureRecognizerParametrizedToken { }
  1783. @end
  1784.  
  1785. @interface UIKit_UIBarButtonItem_Callback : NSObject {
  1786.     XamarinObject __monoObjectGCHandle;
  1787. }
  1788.     -(void) release;
  1789.     -(id) retain;
  1790.     -(int) xamarinGetGCHandle;
  1791.     -(void) xamarinSetGCHandle: (int) gchandle;
  1792.     -(void) InvokeAction:(NSObject *)p0;
  1793.     -(BOOL) conformsToProtocol:(void *)p0;
  1794.     -(id) init;
  1795. @end
  1796. @implementation UIKit_UIBarButtonItem_Callback { }
  1797.     -(void) release
  1798.     {
  1799.         xamarin_release_trampoline (self, _cmd);
  1800.     }
  1801.  
  1802.     -(id) retain
  1803.     {
  1804.         return xamarin_retain_trampoline (self, _cmd);
  1805.     }
  1806.  
  1807.     -(int) xamarinGetGCHandle
  1808.     {
  1809.         return __monoObjectGCHandle.gc_handle;
  1810.     }
  1811.  
  1812.     -(void) xamarinSetGCHandle: (int) gc_handle
  1813.     {
  1814.         __monoObjectGCHandle.gc_handle = gc_handle;
  1815.         __monoObjectGCHandle.native_object = self;
  1816.     }
  1817.  
  1818.  
  1819.     -(void) InvokeAction:(NSObject *)p0
  1820.     {
  1821.         static MonoMethod *managed_method = NULL;
  1822.         native_to_managed_trampoline_10 (self, _cmd, &managed_method, p0, "Foundation.NSObject, Xamarin.iOS", "UIKit.UIBarButtonItem+Callback, Xamarin.iOS", "Call");
  1823.     }
  1824.  
  1825.     -(BOOL) conformsToProtocol:(void *)p0
  1826.     {
  1827.         static MonoMethod *managed_method = NULL;
  1828.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1829.     }
  1830.  
  1831.     -(id) init
  1832.     {
  1833.         static MonoMethod *managed_method = NULL;
  1834.         bool call_super = false;
  1835.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "UIKit.UIBarButtonItem+Callback, Xamarin.iOS", ".ctor", &call_super);
  1836.         if (call_super && rv) {
  1837.             struct objc_super super = {  rv, [NSObject class] };
  1838.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  1839.         }
  1840.         return rv;
  1841.     }
  1842. @end
  1843.  
  1844. @interface __NSObject_Disposer : NSObject {
  1845.     XamarinObject __monoObjectGCHandle;
  1846. }
  1847.     -(void) release;
  1848.     -(id) retain;
  1849.     -(int) xamarinGetGCHandle;
  1850.     -(void) xamarinSetGCHandle: (int) gchandle;
  1851.     +(void) drain:(NSObject *)p0;
  1852.     -(BOOL) conformsToProtocol:(void *)p0;
  1853.     -(id) init;
  1854. @end
  1855. @implementation __NSObject_Disposer { }
  1856.     -(void) release
  1857.     {
  1858.         xamarin_release_trampoline (self, _cmd);
  1859.     }
  1860.  
  1861.     -(id) retain
  1862.     {
  1863.         return xamarin_retain_trampoline (self, _cmd);
  1864.     }
  1865.  
  1866.     -(int) xamarinGetGCHandle
  1867.     {
  1868.         return __monoObjectGCHandle.gc_handle;
  1869.     }
  1870.  
  1871.     -(void) xamarinSetGCHandle: (int) gc_handle
  1872.     {
  1873.         __monoObjectGCHandle.gc_handle = gc_handle;
  1874.         __monoObjectGCHandle.native_object = self;
  1875.     }
  1876.  
  1877.  
  1878.     +(void) drain:(NSObject *)p0
  1879.     {
  1880.         static MonoMethod *managed_method = NULL;
  1881.         native_to_managed_trampoline_11 (self, _cmd, &managed_method, p0, "Foundation.NSObject, Xamarin.iOS", "Foundation.NSObject+NSObject_Disposer, Xamarin.iOS", "Drain");
  1882.     }
  1883.  
  1884.     -(BOOL) conformsToProtocol:(void *)p0
  1885.     {
  1886.         static MonoMethod *managed_method = NULL;
  1887.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  1888.     }
  1889.  
  1890.     -(id) init
  1891.     {
  1892.         static MonoMethod *managed_method = NULL;
  1893.         bool call_super = false;
  1894.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "Foundation.NSObject+NSObject_Disposer, Xamarin.iOS", ".ctor", &call_super);
  1895.         if (call_super && rv) {
  1896.             struct objc_super super = {  rv, [NSObject class] };
  1897.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  1898.         }
  1899.         return rv;
  1900.     }
  1901. @end
  1902.  
  1903. @interface UIKit_UIScrollView__UIScrollViewDelegate : NSObject<UIScrollViewDelegate> {
  1904.     XamarinObject __monoObjectGCHandle;
  1905. }
  1906.     -(void) release;
  1907.     -(id) retain;
  1908.     -(int) xamarinGetGCHandle;
  1909.     -(void) xamarinSetGCHandle: (int) gchandle;
  1910.     -(void) scrollViewDidEndDecelerating:(UIScrollView *)p0;
  1911.     -(void) scrollViewWillBeginDecelerating:(UIScrollView *)p0;
  1912.     -(void) scrollViewDidZoom:(UIScrollView *)p0;
  1913.     -(void) scrollViewDidEndDragging:(UIScrollView *)p0 willDecelerate:(BOOL)p1;
  1914.     -(void) scrollViewWillBeginDragging:(UIScrollView *)p0;
  1915.     -(void) scrollViewDidEndScrollingAnimation:(UIScrollView *)p0;
  1916.     -(void) scrollViewDidScroll:(UIScrollView *)p0;
  1917.     -(void) scrollViewDidScrollToTop:(UIScrollView *)p0;
  1918.     -(BOOL) scrollViewShouldScrollToTop:(UIScrollView *)p0;
  1919.     -(UIView *) viewForZoomingInScrollView:(UIScrollView *)p0;
  1920.     -(void) scrollViewWillEndDragging:(UIScrollView *)p0 withVelocity:(CGPoint)p1 targetContentOffset:(CGPoint*)p2;
  1921.     -(void) scrollViewDidEndZooming:(UIScrollView *)p0 withView:(UIView *)p1 atScale:(CGFloat)p2;
  1922.     -(void) scrollViewWillBeginZooming:(UIScrollView *)p0 withView:(UIView *)p1;
  1923.     -(BOOL) conformsToProtocol:(void *)p0;
  1924. @end
  1925. @implementation UIKit_UIScrollView__UIScrollViewDelegate { }
  1926.     -(void) release
  1927.     {
  1928.         xamarin_release_trampoline (self, _cmd);
  1929.     }
  1930.  
  1931.     -(id) retain
  1932.     {
  1933.         return xamarin_retain_trampoline (self, _cmd);
  1934.     }
  1935.  
  1936.     -(int) xamarinGetGCHandle
  1937.     {
  1938.         return __monoObjectGCHandle.gc_handle;
  1939.     }
  1940.  
  1941.     -(void) xamarinSetGCHandle: (int) gc_handle
  1942.     {
  1943.         __monoObjectGCHandle.gc_handle = gc_handle;
  1944.         __monoObjectGCHandle.native_object = self;
  1945.     }
  1946.  
  1947.  
  1948.     -(void) scrollViewDidEndDecelerating:(UIScrollView *)p0
  1949.     {
  1950.         static MonoMethod *managed_method = NULL;
  1951.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "DecelerationEnded");
  1952.     }
  1953.  
  1954.     -(void) scrollViewWillBeginDecelerating:(UIScrollView *)p0
  1955.     {
  1956.         static MonoMethod *managed_method = NULL;
  1957.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "DecelerationStarted");
  1958.     }
  1959.  
  1960.     -(void) scrollViewDidZoom:(UIScrollView *)p0
  1961.     {
  1962.         static MonoMethod *managed_method = NULL;
  1963.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "DidZoom");
  1964.     }
  1965.  
  1966.     -(void) scrollViewDidEndDragging:(UIScrollView *)p0 willDecelerate:(BOOL)p1
  1967.     {
  1968.         static MonoMethod *managed_method = NULL;
  1969.         native_to_managed_trampoline_13 (self, _cmd, &managed_method, p0, p1, "UIKit.UIScrollView, Xamarin.iOS", "System.Boolean, mscorlib", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "DraggingEnded");
  1970.     }
  1971.  
  1972.     -(void) scrollViewWillBeginDragging:(UIScrollView *)p0
  1973.     {
  1974.         static MonoMethod *managed_method = NULL;
  1975.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "DraggingStarted");
  1976.     }
  1977.  
  1978.     -(void) scrollViewDidEndScrollingAnimation:(UIScrollView *)p0
  1979.     {
  1980.         static MonoMethod *managed_method = NULL;
  1981.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "ScrollAnimationEnded");
  1982.     }
  1983.  
  1984.     -(void) scrollViewDidScroll:(UIScrollView *)p0
  1985.     {
  1986.         static MonoMethod *managed_method = NULL;
  1987.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "Scrolled");
  1988.     }
  1989.  
  1990.     -(void) scrollViewDidScrollToTop:(UIScrollView *)p0
  1991.     {
  1992.         static MonoMethod *managed_method = NULL;
  1993.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "ScrolledToTop");
  1994.     }
  1995.  
  1996.     -(BOOL) scrollViewShouldScrollToTop:(UIScrollView *)p0
  1997.     {
  1998.         static MonoMethod *managed_method = NULL;
  1999.         return native_to_managed_trampoline_14 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "ShouldScrollToTop");
  2000.     }
  2001.  
  2002.     -(UIView *) viewForZoomingInScrollView:(UIScrollView *)p0
  2003.     {
  2004.         static MonoMethod *managed_method = NULL;
  2005.         return native_to_managed_trampoline_15 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "ViewForZoomingInScrollView");
  2006.     }
  2007.  
  2008.     -(void) scrollViewWillEndDragging:(UIScrollView *)p0 withVelocity:(CGPoint)p1 targetContentOffset:(CGPoint*)p2
  2009.     {
  2010.         static MonoMethod *managed_method = NULL;
  2011.         native_to_managed_trampoline_16 (self, _cmd, &managed_method, p0, p1, p2, "UIKit.UIScrollView, Xamarin.iOS", "CoreGraphics.CGPoint, Xamarin.iOS", "CoreGraphics.CGPoint&, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "WillEndDragging");
  2012.     }
  2013.  
  2014.     -(void) scrollViewDidEndZooming:(UIScrollView *)p0 withView:(UIView *)p1 atScale:(CGFloat)p2
  2015.     {
  2016.         static MonoMethod *managed_method = NULL;
  2017.         native_to_managed_trampoline_17 (self, _cmd, &managed_method, p0, p1, p2, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIView, Xamarin.iOS", "System.nfloat, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "ZoomingEnded");
  2018.     }
  2019.  
  2020.     -(void) scrollViewWillBeginZooming:(UIScrollView *)p0 withView:(UIView *)p1
  2021.     {
  2022.         static MonoMethod *managed_method = NULL;
  2023.         native_to_managed_trampoline_18 (self, _cmd, &managed_method, p0, p1, "UIKit.UIScrollView, Xamarin.iOS", "UIKit.UIView, Xamarin.iOS", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", "ZoomingStarted");
  2024.     }
  2025.  
  2026.     -(BOOL) conformsToProtocol:(void *)p0
  2027.     {
  2028.         static MonoMethod *managed_method = NULL;
  2029.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2030.     }
  2031. @end
  2032.  
  2033. @interface GMImagePicker_GMAlbumsViewCell : UITableViewCell {
  2034.     XamarinObject __monoObjectGCHandle;
  2035. }
  2036.     -(void) release;
  2037.     -(id) retain;
  2038.     -(int) xamarinGetGCHandle;
  2039.     -(void) xamarinSetGCHandle: (int) gchandle;
  2040.     -(void) awakeFromNib;
  2041.     -(void) setSelected:(BOOL)p0 animated:(BOOL)p1;
  2042.     -(BOOL) conformsToProtocol:(void *)p0;
  2043.     -(id) initWithStyle:(NSInteger)p0 reuseIdentifier:(NSString *)p1;
  2044. @end
  2045. @implementation GMImagePicker_GMAlbumsViewCell { }
  2046.     -(void) release
  2047.     {
  2048.         xamarin_release_trampoline (self, _cmd);
  2049.     }
  2050.  
  2051.     -(id) retain
  2052.     {
  2053.         return xamarin_retain_trampoline (self, _cmd);
  2054.     }
  2055.  
  2056.     -(int) xamarinGetGCHandle
  2057.     {
  2058.         return __monoObjectGCHandle.gc_handle;
  2059.     }
  2060.  
  2061.     -(void) xamarinSetGCHandle: (int) gc_handle
  2062.     {
  2063.         __monoObjectGCHandle.gc_handle = gc_handle;
  2064.         __monoObjectGCHandle.native_object = self;
  2065.     }
  2066.  
  2067.  
  2068.     -(void) awakeFromNib
  2069.     {
  2070.         static MonoMethod *managed_method = NULL;
  2071.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMImagePicker.GMAlbumsViewCell, GMImagePicker.Xamarin", "AwakeFromNib");
  2072.     }
  2073.  
  2074.     -(void) setSelected:(BOOL)p0 animated:(BOOL)p1
  2075.     {
  2076.         static MonoMethod *managed_method = NULL;
  2077.         native_to_managed_trampoline_19 (self, _cmd, &managed_method, p0, p1, "System.Boolean, mscorlib", "System.Boolean, mscorlib", "GMImagePicker.GMAlbumsViewCell, GMImagePicker.Xamarin", "SetSelected");
  2078.     }
  2079.  
  2080.     -(BOOL) conformsToProtocol:(void *)p0
  2081.     {
  2082.         static MonoMethod *managed_method = NULL;
  2083.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2084.     }
  2085.  
  2086.     -(id) initWithStyle:(NSInteger)p0 reuseIdentifier:(NSString *)p1
  2087.     {
  2088.         static MonoMethod *managed_method = NULL;
  2089.         bool call_super = false;
  2090.         id rv = native_to_managed_trampoline_20 (self, _cmd, &managed_method, p0, p1, "UIKit.UITableViewCellStyle, Xamarin.iOS", "System.String, mscorlib", "GMImagePicker.GMAlbumsViewCell, GMImagePicker.Xamarin", ".ctor", &call_super);
  2091.         if (call_super && rv) {
  2092.             struct objc_super super = {  rv, [UITableViewCell class] };
  2093.             rv = ((id (*)(objc_super*, SEL, NSInteger, NSString *)) objc_msgSendSuper) (&super, @selector (initWithStyle:reuseIdentifier:), p0, p1);
  2094.         }
  2095.         return rv;
  2096.     }
  2097. @end
  2098.  
  2099. @interface GMImagePicker_GMGridViewCell : UICollectionViewCell {
  2100.     XamarinObject __monoObjectGCHandle;
  2101. }
  2102.     -(void) release;
  2103.     -(id) retain;
  2104.     -(int) xamarinGetGCHandle;
  2105.     -(void) xamarinSetGCHandle: (int) gchandle;
  2106.     -(void) awakeFromNib;
  2107.     -(void) layoutSubviews;
  2108.     -(BOOL) isSelected;
  2109.     -(void) setSelected:(BOOL)p0;
  2110.     -(BOOL) conformsToProtocol:(void *)p0;
  2111.     -(id) initWithFrame:(CGRect)p0;
  2112. @end
  2113. @implementation GMImagePicker_GMGridViewCell { }
  2114.     -(void) release
  2115.     {
  2116.         xamarin_release_trampoline (self, _cmd);
  2117.     }
  2118.  
  2119.     -(id) retain
  2120.     {
  2121.         return xamarin_retain_trampoline (self, _cmd);
  2122.     }
  2123.  
  2124.     -(int) xamarinGetGCHandle
  2125.     {
  2126.         return __monoObjectGCHandle.gc_handle;
  2127.     }
  2128.  
  2129.     -(void) xamarinSetGCHandle: (int) gc_handle
  2130.     {
  2131.         __monoObjectGCHandle.gc_handle = gc_handle;
  2132.         __monoObjectGCHandle.native_object = self;
  2133.     }
  2134.  
  2135.  
  2136.     -(void) awakeFromNib
  2137.     {
  2138.         static MonoMethod *managed_method = NULL;
  2139.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMImagePicker.GMGridViewCell, GMImagePicker.Xamarin", "AwakeFromNib");
  2140.     }
  2141.  
  2142.     -(void) layoutSubviews
  2143.     {
  2144.         static MonoMethod *managed_method = NULL;
  2145.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMImagePicker.GMGridViewCell, GMImagePicker.Xamarin", "LayoutSubviews");
  2146.     }
  2147.  
  2148.     -(BOOL) isSelected
  2149.     {
  2150.         static MonoMethod *managed_method = NULL;
  2151.         return native_to_managed_trampoline_21 (self, _cmd, &managed_method, "GMImagePicker.GMGridViewCell, GMImagePicker.Xamarin", "get_Selected");
  2152.     }
  2153.  
  2154.     -(void) setSelected:(BOOL)p0
  2155.     {
  2156.         static MonoMethod *managed_method = NULL;
  2157.         native_to_managed_trampoline_9 (self, _cmd, &managed_method, p0, "System.Boolean, mscorlib", "GMImagePicker.GMGridViewCell, GMImagePicker.Xamarin", "set_Selected");
  2158.     }
  2159.  
  2160.     -(BOOL) conformsToProtocol:(void *)p0
  2161.     {
  2162.         static MonoMethod *managed_method = NULL;
  2163.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2164.     }
  2165.  
  2166.     -(id) initWithFrame:(CGRect)p0
  2167.     {
  2168.         static MonoMethod *managed_method = NULL;
  2169.         bool call_super = false;
  2170.         id rv = native_to_managed_trampoline_22 (self, _cmd, &managed_method, p0, "CoreGraphics.CGRect, Xamarin.iOS", "GMImagePicker.GMGridViewCell, GMImagePicker.Xamarin", ".ctor", &call_super);
  2171.         if (call_super && rv) {
  2172.             struct objc_super super = {  rv, [UICollectionViewCell class] };
  2173.             rv = ((id (*)(objc_super*, SEL, CGRect)) objc_msgSendSuper) (&super, @selector (initWithFrame:frame), p0);
  2174.         }
  2175.         return rv;
  2176.     }
  2177. @end
  2178.  
  2179. @interface DummyClass : NSObject {
  2180.     XamarinObject __monoObjectGCHandle;
  2181. }
  2182.     -(void) release;
  2183.     -(id) retain;
  2184.     -(int) xamarinGetGCHandle;
  2185.     -(void) xamarinSetGCHandle: (int) gchandle;
  2186.     -(BOOL) conformsToProtocol:(void *)p0;
  2187.     -(id) init;
  2188. @end
  2189. @implementation DummyClass { }
  2190.     -(void) release
  2191.     {
  2192.         xamarin_release_trampoline (self, _cmd);
  2193.     }
  2194.  
  2195.     -(id) retain
  2196.     {
  2197.         return xamarin_retain_trampoline (self, _cmd);
  2198.     }
  2199.  
  2200.     -(int) xamarinGetGCHandle
  2201.     {
  2202.         return __monoObjectGCHandle.gc_handle;
  2203.     }
  2204.  
  2205.     -(void) xamarinSetGCHandle: (int) gc_handle
  2206.     {
  2207.         __monoObjectGCHandle.gc_handle = gc_handle;
  2208.         __monoObjectGCHandle.native_object = self;
  2209.     }
  2210.  
  2211.  
  2212.     -(BOOL) conformsToProtocol:(void *)p0
  2213.     {
  2214.         static MonoMethod *managed_method = NULL;
  2215.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2216.     }
  2217.  
  2218.     -(id) init
  2219.     {
  2220.         static MonoMethod *managed_method = NULL;
  2221.         bool call_super = false;
  2222.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "GMImagePicker.DummyClass, GMImagePicker.Xamarin", ".ctor", &call_super);
  2223.         if (call_super && rv) {
  2224.             struct objc_super super = {  rv, [NSObject class] };
  2225.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  2226.         }
  2227.         return rv;
  2228.     }
  2229. @end
  2230.  
  2231. @interface GMImagePicker_GMGridViewController : UICollectionViewController<PHPhotoLibraryChangeObserver> {
  2232.     XamarinObject __monoObjectGCHandle;
  2233. }
  2234.     -(void) release;
  2235.     -(id) retain;
  2236.     -(int) xamarinGetGCHandle;
  2237.     -(void) xamarinSetGCHandle: (int) gchandle;
  2238.     -(void) viewDidLoad;
  2239.     -(void) viewWillAppear:(BOOL)p0;
  2240.     -(void) viewDidAppear:(BOOL)p0;
  2241.     -(void) viewWillDisappear:(BOOL)p0;
  2242.     -(void) photoLibraryDidChange:(PHChange *)p0;
  2243.     -(NSInteger) preferredStatusBarStyle;
  2244.     -(void) scrollViewDidScroll:(UIScrollView *)p0;
  2245.     -(void) willAnimateRotationToInterfaceOrientation:(NSInteger)p0 duration:(double)p1;
  2246.     -(BOOL) conformsToProtocol:(void *)p0;
  2247. @end
  2248. @implementation GMImagePicker_GMGridViewController { }
  2249.     -(void) release
  2250.     {
  2251.         xamarin_release_trampoline (self, _cmd);
  2252.     }
  2253.  
  2254.     -(id) retain
  2255.     {
  2256.         return xamarin_retain_trampoline (self, _cmd);
  2257.     }
  2258.  
  2259.     -(int) xamarinGetGCHandle
  2260.     {
  2261.         return __monoObjectGCHandle.gc_handle;
  2262.     }
  2263.  
  2264.     -(void) xamarinSetGCHandle: (int) gc_handle
  2265.     {
  2266.         __monoObjectGCHandle.gc_handle = gc_handle;
  2267.         __monoObjectGCHandle.native_object = self;
  2268.     }
  2269.  
  2270.  
  2271.     -(void) viewDidLoad
  2272.     {
  2273.         static MonoMethod *managed_method = NULL;
  2274.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "ViewDidLoad");
  2275.     }
  2276.  
  2277.     -(void) viewWillAppear:(BOOL)p0
  2278.     {
  2279.         static MonoMethod *managed_method = NULL;
  2280.         native_to_managed_trampoline_9 (self, _cmd, &managed_method, p0, "System.Boolean, mscorlib", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "ViewWillAppear");
  2281.     }
  2282.  
  2283.     -(void) viewDidAppear:(BOOL)p0
  2284.     {
  2285.         static MonoMethod *managed_method = NULL;
  2286.         native_to_managed_trampoline_9 (self, _cmd, &managed_method, p0, "System.Boolean, mscorlib", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "ViewDidAppear");
  2287.     }
  2288.  
  2289.     -(void) viewWillDisappear:(BOOL)p0
  2290.     {
  2291.         static MonoMethod *managed_method = NULL;
  2292.         native_to_managed_trampoline_9 (self, _cmd, &managed_method, p0, "System.Boolean, mscorlib", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "ViewWillDisappear");
  2293.     }
  2294.  
  2295.     -(void) photoLibraryDidChange:(PHChange *)p0
  2296.     {
  2297.         static MonoMethod *managed_method = NULL;
  2298.         native_to_managed_trampoline_23 (self, _cmd, &managed_method, p0, "Photos.PHChange, Xamarin.iOS", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "PhotoLibraryDidChange");
  2299.     }
  2300.  
  2301.     -(NSInteger) preferredStatusBarStyle
  2302.     {
  2303.         static MonoMethod *managed_method = NULL;
  2304.         return native_to_managed_trampoline_24 (self, _cmd, &managed_method, "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "PreferredStatusBarStyle");
  2305.     }
  2306.  
  2307.     -(void) scrollViewDidScroll:(UIScrollView *)p0
  2308.     {
  2309.         static MonoMethod *managed_method = NULL;
  2310.         native_to_managed_trampoline_12 (self, _cmd, &managed_method, p0, "UIKit.UIScrollView, Xamarin.iOS", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "Scrolled");
  2311.     }
  2312.  
  2313.     -(void) willAnimateRotationToInterfaceOrientation:(NSInteger)p0 duration:(double)p1
  2314.     {
  2315.         static MonoMethod *managed_method = NULL;
  2316.         native_to_managed_trampoline_25 (self, _cmd, &managed_method, p0, p1, "UIKit.UIInterfaceOrientation, Xamarin.iOS", "System.Double, mscorlib", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", "WillAnimateRotation");
  2317.     }
  2318.  
  2319.     -(BOOL) conformsToProtocol:(void *)p0
  2320.     {
  2321.         static MonoMethod *managed_method = NULL;
  2322.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2323.     }
  2324. @end
  2325.  
  2326. @interface GMImagePicker_GMImagePickerController_GMNavigationControllerDelegate : NSObject<UINavigationControllerDelegate> {
  2327.     XamarinObject __monoObjectGCHandle;
  2328. }
  2329.     -(void) release;
  2330.     -(id) retain;
  2331.     -(int) xamarinGetGCHandle;
  2332.     -(void) xamarinSetGCHandle: (int) gchandle;
  2333.     -(BOOL) conformsToProtocol:(void *)p0;
  2334.     -(id) init;
  2335. @end
  2336. @implementation GMImagePicker_GMImagePickerController_GMNavigationControllerDelegate { }
  2337.     -(void) release
  2338.     {
  2339.         xamarin_release_trampoline (self, _cmd);
  2340.     }
  2341.  
  2342.     -(id) retain
  2343.     {
  2344.         return xamarin_retain_trampoline (self, _cmd);
  2345.     }
  2346.  
  2347.     -(int) xamarinGetGCHandle
  2348.     {
  2349.         return __monoObjectGCHandle.gc_handle;
  2350.     }
  2351.  
  2352.     -(void) xamarinSetGCHandle: (int) gc_handle
  2353.     {
  2354.         __monoObjectGCHandle.gc_handle = gc_handle;
  2355.         __monoObjectGCHandle.native_object = self;
  2356.     }
  2357.  
  2358.  
  2359.     -(BOOL) conformsToProtocol:(void *)p0
  2360.     {
  2361.         static MonoMethod *managed_method = NULL;
  2362.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2363.     }
  2364.  
  2365.     -(id) init
  2366.     {
  2367.         static MonoMethod *managed_method = NULL;
  2368.         bool call_super = false;
  2369.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "GMImagePicker.GMImagePickerController+GMNavigationControllerDelegate, GMImagePicker.Xamarin", ".ctor", &call_super);
  2370.         if (call_super && rv) {
  2371.             struct objc_super super = {  rv, [NSObject class] };
  2372.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  2373.         }
  2374.         return rv;
  2375.     }
  2376. @end
  2377.  
  2378. @interface GMImagePicker_GMImagePickerController : UIViewController {
  2379.     XamarinObject __monoObjectGCHandle;
  2380. }
  2381.     -(void) release;
  2382.     -(id) retain;
  2383.     -(int) xamarinGetGCHandle;
  2384.     -(void) xamarinSetGCHandle: (int) gchandle;
  2385.     -(void) viewWillAppear:(BOOL)p0;
  2386.     -(NSInteger) preferredStatusBarStyle;
  2387.     -(BOOL) conformsToProtocol:(void *)p0;
  2388.     -(id) init;
  2389. @end
  2390. @implementation GMImagePicker_GMImagePickerController { }
  2391.     -(void) release
  2392.     {
  2393.         xamarin_release_trampoline (self, _cmd);
  2394.     }
  2395.  
  2396.     -(id) retain
  2397.     {
  2398.         return xamarin_retain_trampoline (self, _cmd);
  2399.     }
  2400.  
  2401.     -(int) xamarinGetGCHandle
  2402.     {
  2403.         return __monoObjectGCHandle.gc_handle;
  2404.     }
  2405.  
  2406.     -(void) xamarinSetGCHandle: (int) gc_handle
  2407.     {
  2408.         __monoObjectGCHandle.gc_handle = gc_handle;
  2409.         __monoObjectGCHandle.native_object = self;
  2410.     }
  2411.  
  2412.  
  2413.     -(void) viewWillAppear:(BOOL)p0
  2414.     {
  2415.         static MonoMethod *managed_method = NULL;
  2416.         native_to_managed_trampoline_9 (self, _cmd, &managed_method, p0, "System.Boolean, mscorlib", "GMImagePicker.GMImagePickerController, GMImagePicker.Xamarin", "ViewWillAppear");
  2417.     }
  2418.  
  2419.     -(NSInteger) preferredStatusBarStyle
  2420.     {
  2421.         static MonoMethod *managed_method = NULL;
  2422.         return native_to_managed_trampoline_24 (self, _cmd, &managed_method, "GMImagePicker.GMImagePickerController, GMImagePicker.Xamarin", "PreferredStatusBarStyle");
  2423.     }
  2424.  
  2425.     -(BOOL) conformsToProtocol:(void *)p0
  2426.     {
  2427.         static MonoMethod *managed_method = NULL;
  2428.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2429.     }
  2430.  
  2431.     -(id) init
  2432.     {
  2433.         static MonoMethod *managed_method = NULL;
  2434.         bool call_super = false;
  2435.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "GMImagePicker.GMImagePickerController, GMImagePicker.Xamarin", ".ctor", &call_super);
  2436.         if (call_super && rv) {
  2437.             struct objc_super super = {  rv, [UIViewController class] };
  2438.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  2439.         }
  2440.         return rv;
  2441.     }
  2442. @end
  2443.  
  2444. @interface GMImagePicker_GMAlbumsViewController : UITableViewController<PHPhotoLibraryChangeObserver> {
  2445.     XamarinObject __monoObjectGCHandle;
  2446. }
  2447.     -(void) release;
  2448.     -(id) retain;
  2449.     -(int) xamarinGetGCHandle;
  2450.     -(void) xamarinSetGCHandle: (int) gchandle;
  2451.     -(void) photoLibraryDidChange:(PHChange *)p0;
  2452.     -(void) viewDidLoad;
  2453.     -(NSInteger) preferredStatusBarStyle;
  2454.     -(BOOL) shouldAutorotate;
  2455.     -(NSUInteger) supportedInterfaceOrientations;
  2456.     -(BOOL) conformsToProtocol:(void *)p0;
  2457.     -(id) init;
  2458. @end
  2459. @implementation GMImagePicker_GMAlbumsViewController { }
  2460.     -(void) release
  2461.     {
  2462.         xamarin_release_trampoline (self, _cmd);
  2463.     }
  2464.  
  2465.     -(id) retain
  2466.     {
  2467.         return xamarin_retain_trampoline (self, _cmd);
  2468.     }
  2469.  
  2470.     -(int) xamarinGetGCHandle
  2471.     {
  2472.         return __monoObjectGCHandle.gc_handle;
  2473.     }
  2474.  
  2475.     -(void) xamarinSetGCHandle: (int) gc_handle
  2476.     {
  2477.         __monoObjectGCHandle.gc_handle = gc_handle;
  2478.         __monoObjectGCHandle.native_object = self;
  2479.     }
  2480.  
  2481.  
  2482.     -(void) photoLibraryDidChange:(PHChange *)p0
  2483.     {
  2484.         static MonoMethod *managed_method = NULL;
  2485.         native_to_managed_trampoline_23 (self, _cmd, &managed_method, p0, "Photos.PHChange, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", "PhotoLibraryDidChange");
  2486.     }
  2487.  
  2488.     -(void) viewDidLoad
  2489.     {
  2490.         static MonoMethod *managed_method = NULL;
  2491.         native_to_managed_trampoline_1 (self, _cmd, &managed_method, "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", "ViewDidLoad");
  2492.     }
  2493.  
  2494.     -(NSInteger) preferredStatusBarStyle
  2495.     {
  2496.         static MonoMethod *managed_method = NULL;
  2497.         return native_to_managed_trampoline_24 (self, _cmd, &managed_method, "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", "PreferredStatusBarStyle");
  2498.     }
  2499.  
  2500.     -(BOOL) shouldAutorotate
  2501.     {
  2502.         static MonoMethod *managed_method = NULL;
  2503.         return native_to_managed_trampoline_21 (self, _cmd, &managed_method, "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", "ShouldAutorotate");
  2504.     }
  2505.  
  2506.     -(NSUInteger) supportedInterfaceOrientations
  2507.     {
  2508.         static MonoMethod *managed_method = NULL;
  2509.         return native_to_managed_trampoline_26 (self, _cmd, &managed_method, "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", "GetSupportedInterfaceOrientations");
  2510.     }
  2511.  
  2512.     -(BOOL) conformsToProtocol:(void *)p0
  2513.     {
  2514.         static MonoMethod *managed_method = NULL;
  2515.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2516.     }
  2517.  
  2518.     -(id) init
  2519.     {
  2520.         static MonoMethod *managed_method = NULL;
  2521.         bool call_super = false;
  2522.         id rv = native_to_managed_trampoline_8 (self, _cmd, &managed_method, "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", ".ctor", &call_super);
  2523.         if (call_super && rv) {
  2524.             struct objc_super super = {  rv, [UITableViewController class] };
  2525.             rv = ((id (*)(objc_super*, SEL)) objc_msgSendSuper) (&super, @selector (init));
  2526.         }
  2527.         return rv;
  2528.     }
  2529. @end
  2530.  
  2531. @interface GMImagePicker_GMGridViewController_GMGridViewCollectionViewSource : NSObject<UICollectionViewSource> {
  2532.     XamarinObject __monoObjectGCHandle;
  2533. }
  2534.     -(void) release;
  2535.     -(id) retain;
  2536.     -(int) xamarinGetGCHandle;
  2537.     -(void) xamarinSetGCHandle: (int) gchandle;
  2538.     -(NSInteger) numberOfSectionsInCollectionView:(UICollectionView *)p0;
  2539.     -(UICollectionViewCell *) collectionView:(UICollectionView *)p0 cellForItemAtIndexPath:(NSIndexPath *)p1;
  2540.     -(NSInteger) collectionView:(UICollectionView *)p0 numberOfItemsInSection:(NSInteger)p1;
  2541.     -(void) collectionView:(UICollectionView *)p0 didSelectItemAtIndexPath:(NSIndexPath *)p1;
  2542.     -(BOOL) collectionView:(UICollectionView *)p0 shouldDeselectItemAtIndexPath:(NSIndexPath *)p1;
  2543.     -(BOOL) collectionView:(UICollectionView *)p0 shouldHighlightItemAtIndexPath:(NSIndexPath *)p1;
  2544.     -(void) collectionView:(UICollectionView *)p0 didHighlightItemAtIndexPath:(NSIndexPath *)p1;
  2545.     -(void) collectionView:(UICollectionView *)p0 didUnhighlightItemAtIndexPath:(NSIndexPath *)p1;
  2546.     -(BOOL) collectionView:(UICollectionView *)p0 shouldSelectItemAtIndexPath:(NSIndexPath *)p1;
  2547.     -(void) collectionView:(UICollectionView *)p0 didDeselectItemAtIndexPath:(NSIndexPath *)p1;
  2548.     -(BOOL) conformsToProtocol:(void *)p0;
  2549. @end
  2550. @implementation GMImagePicker_GMGridViewController_GMGridViewCollectionViewSource { }
  2551.     -(void) release
  2552.     {
  2553.         xamarin_release_trampoline (self, _cmd);
  2554.     }
  2555.  
  2556.     -(id) retain
  2557.     {
  2558.         return xamarin_retain_trampoline (self, _cmd);
  2559.     }
  2560.  
  2561.     -(int) xamarinGetGCHandle
  2562.     {
  2563.         return __monoObjectGCHandle.gc_handle;
  2564.     }
  2565.  
  2566.     -(void) xamarinSetGCHandle: (int) gc_handle
  2567.     {
  2568.         __monoObjectGCHandle.gc_handle = gc_handle;
  2569.         __monoObjectGCHandle.native_object = self;
  2570.     }
  2571.  
  2572.  
  2573.     -(NSInteger) numberOfSectionsInCollectionView:(UICollectionView *)p0
  2574.     {
  2575.         static MonoMethod *managed_method = NULL;
  2576.         return native_to_managed_trampoline_27 (self, _cmd, &managed_method, p0, "UIKit.UICollectionView, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "NumberOfSections");
  2577.     }
  2578.  
  2579.     -(UICollectionViewCell *) collectionView:(UICollectionView *)p0 cellForItemAtIndexPath:(NSIndexPath *)p1
  2580.     {
  2581.         static MonoMethod *managed_method = NULL;
  2582.         return native_to_managed_trampoline_28 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "GetCell");
  2583.     }
  2584.  
  2585.     -(NSInteger) collectionView:(UICollectionView *)p0 numberOfItemsInSection:(NSInteger)p1
  2586.     {
  2587.         static MonoMethod *managed_method = NULL;
  2588.         return native_to_managed_trampoline_29 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "System.nint, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "GetItemsCount");
  2589.     }
  2590.  
  2591.     -(void) collectionView:(UICollectionView *)p0 didSelectItemAtIndexPath:(NSIndexPath *)p1
  2592.     {
  2593.         static MonoMethod *managed_method = NULL;
  2594.         native_to_managed_trampoline_30 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ItemSelected");
  2595.     }
  2596.  
  2597.     -(BOOL) collectionView:(UICollectionView *)p0 shouldDeselectItemAtIndexPath:(NSIndexPath *)p1
  2598.     {
  2599.         static MonoMethod *managed_method = NULL;
  2600.         return native_to_managed_trampoline_31 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ShouldDeselectItem");
  2601.     }
  2602.  
  2603.     -(BOOL) collectionView:(UICollectionView *)p0 shouldHighlightItemAtIndexPath:(NSIndexPath *)p1
  2604.     {
  2605.         static MonoMethod *managed_method = NULL;
  2606.         return native_to_managed_trampoline_31 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ShouldHighlightItem");
  2607.     }
  2608.  
  2609.     -(void) collectionView:(UICollectionView *)p0 didHighlightItemAtIndexPath:(NSIndexPath *)p1
  2610.     {
  2611.         static MonoMethod *managed_method = NULL;
  2612.         native_to_managed_trampoline_30 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ItemHighlighted");
  2613.     }
  2614.  
  2615.     -(void) collectionView:(UICollectionView *)p0 didUnhighlightItemAtIndexPath:(NSIndexPath *)p1
  2616.     {
  2617.         static MonoMethod *managed_method = NULL;
  2618.         native_to_managed_trampoline_30 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ItemUnhighlighted");
  2619.     }
  2620.  
  2621.     -(BOOL) collectionView:(UICollectionView *)p0 shouldSelectItemAtIndexPath:(NSIndexPath *)p1
  2622.     {
  2623.         static MonoMethod *managed_method = NULL;
  2624.         return native_to_managed_trampoline_31 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ShouldSelectItem");
  2625.     }
  2626.  
  2627.     -(void) collectionView:(UICollectionView *)p0 didDeselectItemAtIndexPath:(NSIndexPath *)p1
  2628.     {
  2629.         static MonoMethod *managed_method = NULL;
  2630.         native_to_managed_trampoline_30 (self, _cmd, &managed_method, p0, p1, "UIKit.UICollectionView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", "ItemDeselected");
  2631.     }
  2632.  
  2633.     -(BOOL) conformsToProtocol:(void *)p0
  2634.     {
  2635.         static MonoMethod *managed_method = NULL;
  2636.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2637.     }
  2638. @end
  2639.  
  2640. @interface GMImagePicker_GMImagePickerController_GMImagePickerDelegate : NSObject<UIImagePickerControllerDelegate, UINavigationControllerDelegate> {
  2641.     XamarinObject __monoObjectGCHandle;
  2642. }
  2643.     -(void) release;
  2644.     -(id) retain;
  2645.     -(int) xamarinGetGCHandle;
  2646.     -(void) xamarinSetGCHandle: (int) gchandle;
  2647.     -(void) imagePickerController:(UIImagePickerController *)p0 didFinishPickingMediaWithInfo:(NSDictionary *)p1;
  2648.     -(void) imagePickerControllerDidCancel:(UIImagePickerController *)p0;
  2649.     -(BOOL) conformsToProtocol:(void *)p0;
  2650. @end
  2651. @implementation GMImagePicker_GMImagePickerController_GMImagePickerDelegate { }
  2652.     -(void) release
  2653.     {
  2654.         xamarin_release_trampoline (self, _cmd);
  2655.     }
  2656.  
  2657.     -(id) retain
  2658.     {
  2659.         return xamarin_retain_trampoline (self, _cmd);
  2660.     }
  2661.  
  2662.     -(int) xamarinGetGCHandle
  2663.     {
  2664.         return __monoObjectGCHandle.gc_handle;
  2665.     }
  2666.  
  2667.     -(void) xamarinSetGCHandle: (int) gc_handle
  2668.     {
  2669.         __monoObjectGCHandle.gc_handle = gc_handle;
  2670.         __monoObjectGCHandle.native_object = self;
  2671.     }
  2672.  
  2673.  
  2674.     -(void) imagePickerController:(UIImagePickerController *)p0 didFinishPickingMediaWithInfo:(NSDictionary *)p1
  2675.     {
  2676.         static MonoMethod *managed_method = NULL;
  2677.         native_to_managed_trampoline_32 (self, _cmd, &managed_method, p0, p1, "UIKit.UIImagePickerController, Xamarin.iOS", "Foundation.NSDictionary, Xamarin.iOS", "GMImagePicker.GMImagePickerController+GMImagePickerDelegate, GMImagePicker.Xamarin", "FinishedPickingMedia");
  2678.     }
  2679.  
  2680.     -(void) imagePickerControllerDidCancel:(UIImagePickerController *)p0
  2681.     {
  2682.         static MonoMethod *managed_method = NULL;
  2683.         native_to_managed_trampoline_33 (self, _cmd, &managed_method, p0, "UIKit.UIImagePickerController, Xamarin.iOS", "GMImagePicker.GMImagePickerController+GMImagePickerDelegate, GMImagePicker.Xamarin", "Canceled");
  2684.     }
  2685.  
  2686.     -(BOOL) conformsToProtocol:(void *)p0
  2687.     {
  2688.         static MonoMethod *managed_method = NULL;
  2689.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2690.     }
  2691. @end
  2692.  
  2693. @interface GMImagePicker_GMAlbumsViewController_GMAlbumsViewTableViewSource : NSObject<UIScrollViewDelegate> {
  2694.     XamarinObject __monoObjectGCHandle;
  2695. }
  2696.     -(void) release;
  2697.     -(id) retain;
  2698.     -(int) xamarinGetGCHandle;
  2699.     -(void) xamarinSetGCHandle: (int) gchandle;
  2700.     -(NSInteger) numberOfSectionsInTableView:(UITableView *)p0;
  2701.     -(NSInteger) tableView:(UITableView *)p0 numberOfRowsInSection:(NSInteger)p1;
  2702.     -(UITableViewCell *) tableView:(UITableView *)p0 cellForRowAtIndexPath:(NSIndexPath *)p1;
  2703.     -(void) tableView:(UITableView *)p0 didSelectRowAtIndexPath:(NSIndexPath *)p1;
  2704.     -(void) tableView:(UITableView *)p0 willDisplayHeaderView:(UIView *)p1 forSection:(NSInteger)p2;
  2705.     -(NSString *) tableView:(UITableView *)p0 titleForHeaderInSection:(NSInteger)p1;
  2706.     -(BOOL) conformsToProtocol:(void *)p0;
  2707. @end
  2708. @implementation GMImagePicker_GMAlbumsViewController_GMAlbumsViewTableViewSource { }
  2709.     -(void) release
  2710.     {
  2711.         xamarin_release_trampoline (self, _cmd);
  2712.     }
  2713.  
  2714.     -(id) retain
  2715.     {
  2716.         return xamarin_retain_trampoline (self, _cmd);
  2717.     }
  2718.  
  2719.     -(int) xamarinGetGCHandle
  2720.     {
  2721.         return __monoObjectGCHandle.gc_handle;
  2722.     }
  2723.  
  2724.     -(void) xamarinSetGCHandle: (int) gc_handle
  2725.     {
  2726.         __monoObjectGCHandle.gc_handle = gc_handle;
  2727.         __monoObjectGCHandle.native_object = self;
  2728.     }
  2729.  
  2730.  
  2731.     -(NSInteger) numberOfSectionsInTableView:(UITableView *)p0
  2732.     {
  2733.         static MonoMethod *managed_method = NULL;
  2734.         return native_to_managed_trampoline_34 (self, _cmd, &managed_method, p0, "UIKit.UITableView, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", "NumberOfSections");
  2735.     }
  2736.  
  2737.     -(NSInteger) tableView:(UITableView *)p0 numberOfRowsInSection:(NSInteger)p1
  2738.     {
  2739.         static MonoMethod *managed_method = NULL;
  2740.         return native_to_managed_trampoline_35 (self, _cmd, &managed_method, p0, p1, "UIKit.UITableView, Xamarin.iOS", "System.nint, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", "RowsInSection");
  2741.     }
  2742.  
  2743.     -(UITableViewCell *) tableView:(UITableView *)p0 cellForRowAtIndexPath:(NSIndexPath *)p1
  2744.     {
  2745.         static MonoMethod *managed_method = NULL;
  2746.         return native_to_managed_trampoline_36 (self, _cmd, &managed_method, p0, p1, "UIKit.UITableView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", "GetCell");
  2747.     }
  2748.  
  2749.     -(void) tableView:(UITableView *)p0 didSelectRowAtIndexPath:(NSIndexPath *)p1
  2750.     {
  2751.         static MonoMethod *managed_method = NULL;
  2752.         native_to_managed_trampoline_37 (self, _cmd, &managed_method, p0, p1, "UIKit.UITableView, Xamarin.iOS", "Foundation.NSIndexPath, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", "RowSelected");
  2753.     }
  2754.  
  2755.     -(void) tableView:(UITableView *)p0 willDisplayHeaderView:(UIView *)p1 forSection:(NSInteger)p2
  2756.     {
  2757.         static MonoMethod *managed_method = NULL;
  2758.         native_to_managed_trampoline_38 (self, _cmd, &managed_method, p0, p1, p2, "UIKit.UITableView, Xamarin.iOS", "UIKit.UIView, Xamarin.iOS", "System.nint, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", "WillDisplayHeaderView");
  2759.     }
  2760.  
  2761.     -(NSString *) tableView:(UITableView *)p0 titleForHeaderInSection:(NSInteger)p1
  2762.     {
  2763.         static MonoMethod *managed_method = NULL;
  2764.         return native_to_managed_trampoline_39 (self, _cmd, &managed_method, p0, p1, "UIKit.UITableView, Xamarin.iOS", "System.nint, Xamarin.iOS", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", "TitleForHeader");
  2765.     }
  2766.  
  2767.     -(BOOL) conformsToProtocol:(void *)p0
  2768.     {
  2769.         static MonoMethod *managed_method = NULL;
  2770.         return native_to_managed_trampoline_2 (self, _cmd, &managed_method, p0, "System.IntPtr, mscorlib", "Foundation.NSObject, Xamarin.iOS", "InvokeConformsToProtocol");
  2771.     }
  2772. @end
  2773.  
  2774.     static MTClassMap __xamarin_class_map [] = {
  2775.         {"NSObject", "Foundation.NSObject, Xamarin.iOS", NULL },
  2776.         {"UIResponder", "UIKit.UIResponder, Xamarin.iOS", NULL },
  2777.         {"UIViewController", "UIKit.UIViewController, Xamarin.iOS", NULL },
  2778.         {"NSIndexPath", "Foundation.NSIndexPath, Xamarin.iOS", NULL },
  2779.         {"PHFetchOptions", "Photos.PHFetchOptions, Xamarin.iOS", NULL },
  2780.         {"NSIndexSet", "Foundation.NSIndexSet, Xamarin.iOS", NULL },
  2781.         {"PHFetchResultChangeDetails", "Photos.PHFetchResultChangeDetails, Xamarin.iOS", NULL },
  2782.         {"PHImageManager", "Photos.PHImageManager, Xamarin.iOS", NULL },
  2783.         {"UIFocusAnimationCoordinator", "UIKit.UIFocusAnimationCoordinator, Xamarin.iOS", NULL },
  2784.         {"UIFocusUpdateContext", "UIKit.UIFocusUpdateContext, Xamarin.iOS", NULL },
  2785.         {"PHImageRequestOptions", "Photos.PHImageRequestOptions, Xamarin.iOS", NULL },
  2786.         {"NSLayoutConstraint", "UIKit.NSLayoutConstraint, Xamarin.iOS", NULL },
  2787.         {"PHObject", "Photos.PHObject, Xamarin.iOS", NULL },
  2788.         {"PHPhotoLibrary", "Photos.PHPhotoLibrary, Xamarin.iOS", NULL },
  2789.         {"UIFont", "UIKit.UIFont, Xamarin.iOS", NULL },
  2790.         {"NSArray", "Foundation.NSArray, Xamarin.iOS", NULL },
  2791.         {"NSMutableArray", "Foundation.NSMutableArray, Xamarin.iOS", NULL },
  2792.         {"UIApplication", "UIKit.UIApplication, Xamarin.iOS", NULL },
  2793.         {"NSBundle", "Foundation.NSBundle, Xamarin.iOS", NULL },
  2794.         {"UIBarItem", "UIKit.UIBarItem, Xamarin.iOS", NULL },
  2795.         {"UIBezierPath", "UIKit.UIBezierPath, Xamarin.iOS", NULL },
  2796.         {"UIView", "UIKit.UIView, Xamarin.iOS", NULL },
  2797.         {"UIControl", "UIKit.UIControl, Xamarin.iOS", NULL },
  2798.         {"UIButton", "UIKit.UIButton, Xamarin.iOS", NULL },
  2799.         {"NSCoder", "Foundation.NSCoder, Xamarin.iOS", NULL },
  2800.         {"UIScrollView", "UIKit.UIScrollView, Xamarin.iOS", NULL },
  2801.         {"UICollectionView", "UIKit.UICollectionView, Xamarin.iOS", NULL },
  2802.         {"UICollectionViewLayout", "UIKit.UICollectionViewLayout, Xamarin.iOS", NULL },
  2803.         {"UICollectionViewLayoutAttributes", "UIKit.UICollectionViewLayoutAttributes, Xamarin.iOS", NULL },
  2804.         {"UICollectionViewTransitionLayout", "UIKit.UICollectionViewTransitionLayout, Xamarin.iOS", NULL },
  2805.         {"UIColor", "UIKit.UIColor, Xamarin.iOS", NULL },
  2806.         {"UINavigationController", "UIKit.UINavigationController, Xamarin.iOS", NULL },
  2807.         {"UIImagePickerController", "UIKit.UIImagePickerController, Xamarin.iOS", NULL },
  2808.         {"UIKit_UIControlEventProxy", "UIKit.UIControlEventProxy, Xamarin.iOS", NULL },
  2809.         {"UIDevice", "UIKit.UIDevice, Xamarin.iOS", NULL },
  2810.         {"NSNull", "Foundation.NSNull, Xamarin.iOS", NULL },
  2811.         {"NSValue", "Foundation.NSValue, Xamarin.iOS", NULL },
  2812.         {"NSNumber", "Foundation.NSNumber, Xamarin.iOS", NULL },
  2813.         {"UIImageView", "UIKit.UIImageView, Xamarin.iOS", NULL },
  2814.         {"__MonoTouch_UIImageStatusDispatcher", "UIKit.UIImageStatusDispatcher, Xamarin.iOS", NULL },
  2815.         {"UINavigationBar", "UIKit.UINavigationBar, Xamarin.iOS", NULL },
  2816.         {"UIPresentationController", "UIKit.UIPresentationController, Xamarin.iOS", NULL },
  2817.         {"UIPopoverPresentationController", "UIKit.UIPopoverPresentationController, Xamarin.iOS", NULL },
  2818.         {"NSPredicate", "Foundation.NSPredicate, Xamarin.iOS", NULL },
  2819.         {"NSRunLoop", "Foundation.NSRunLoop, Xamarin.iOS", NULL },
  2820.         {"UIScreen", "UIKit.UIScreen, Xamarin.iOS", NULL },
  2821.         {"UITableView", "UIKit.UITableView, Xamarin.iOS", NULL },
  2822.         {"UITableViewCell", "UIKit.UITableViewCell, Xamarin.iOS", NULL },
  2823.         {"NSString", "Foundation.NSString, Xamarin.iOS", NULL },
  2824.         {"UIToolbar", "UIKit.UIToolbar, Xamarin.iOS", NULL },
  2825.         {"NSURL", "Foundation.NSUrl, Xamarin.iOS", NULL },
  2826.         {"NSSortDescriptor", "Foundation.NSSortDescriptor, Xamarin.iOS", NULL },
  2827.         {"UILabel", "UIKit.UILabel, Xamarin.iOS", NULL },
  2828.         {"UILocalNotification", "UIKit.UILocalNotification, Xamarin.iOS", NULL },
  2829.         {"UINavigationItem", "UIKit.UINavigationItem, Xamarin.iOS", NULL },
  2830.         {"__MonoMac_NSActionDispatcher", "Foundation.NSActionDispatcher, Xamarin.iOS", NULL },
  2831.         {"__MonoMac_NSAsyncActionDispatcher", "Foundation.NSAsyncActionDispatcher, Xamarin.iOS", NULL },
  2832.         {"NSAutoreleasePool", "Foundation.NSAutoreleasePool, Xamarin.iOS", NULL },
  2833.         {"NSError", "Foundation.NSError, Xamarin.iOS", NULL },
  2834.         {"CALayer", "CoreAnimation.CALayer, Xamarin.iOS", NULL },
  2835.         {"CAGradientLayer", "CoreAnimation.CAGradientLayer, Xamarin.iOS", NULL },
  2836.         {"NSUserActivity", "Foundation.NSUserActivity, Xamarin.iOS", NULL },
  2837.         {"UIPress", "UIKit.UIPress, Xamarin.iOS", NULL },
  2838.         {"ALAssetsLibrary", "AssetsLibrary.ALAssetsLibrary, Xamarin.iOS", NULL },
  2839.         {"UITableViewController", "UIKit.UITableViewController, Xamarin.iOS", NULL },
  2840.         {"UITableViewFocusUpdateContext", "UIKit.UITableViewFocusUpdateContext, Xamarin.iOS", NULL },
  2841.         {"NSException", "Foundation.NSException, Xamarin.iOS", NULL },
  2842.         {"UITableViewHeaderFooterView", "UIKit.UITableViewHeaderFooterView, Xamarin.iOS", NULL },
  2843.         {"UITableViewRowAction", "UIKit.UITableViewRowAction, Xamarin.iOS", NULL },
  2844.         {"PHAsset", "Photos.PHAsset, Xamarin.iOS", NULL },
  2845.         {"PHCollection", "Photos.PHCollection, Xamarin.iOS", NULL },
  2846.         {"PHAssetCollection", "Photos.PHAssetCollection, Xamarin.iOS", NULL },
  2847.         {"PHCachingImageManager", "Photos.PHCachingImageManager, Xamarin.iOS", NULL },
  2848.         {"PHChange", "Photos.PHChange, Xamarin.iOS", NULL },
  2849.         {"UIAlertAction", "UIKit.UIAlertAction, Xamarin.iOS", NULL },
  2850.         {"UIAlertController", "UIKit.UIAlertController, Xamarin.iOS", NULL },
  2851.         {"UICollectionViewFlowLayout", "UIKit.UICollectionViewFlowLayout, Xamarin.iOS", NULL },
  2852.         {"UICollectionViewFocusUpdateContext", "UIKit.UICollectionViewFocusUpdateContext, Xamarin.iOS", NULL },
  2853.         {"UICollectionReusableView", "UIKit.UICollectionReusableView, Xamarin.iOS", NULL },
  2854.         {"UICollectionViewCell", "UIKit.UICollectionViewCell, Xamarin.iOS", NULL },
  2855.         {"UIUserNotificationSettings", "UIKit.UIUserNotificationSettings, Xamarin.iOS", NULL },
  2856.         {"UICollectionViewController", "UIKit.UICollectionViewController, Xamarin.iOS", NULL },
  2857.         {"UITouch", "UIKit.UITouch, Xamarin.iOS", NULL },
  2858.         {"UIWindow", "UIKit.UIWindow, Xamarin.iOS", NULL },
  2859.         {"UITraitCollection", "UIKit.UITraitCollection, Xamarin.iOS", NULL },
  2860.         {"UIApplicationShortcutItem", "UIKit.UIApplicationShortcutItem, Xamarin.iOS", NULL },
  2861.         {"PHFetchResult", "Photos.PHFetchResult, Xamarin.iOS", NULL },
  2862.         {"UIGestureRecognizer", "UIKit.UIGestureRecognizer, Xamarin.iOS", NULL },
  2863.         {"UIBarButtonItem", "UIKit.UIBarButtonItem, Xamarin.iOS", NULL },
  2864.         {"UIImage", "UIKit.UIImage, Xamarin.iOS", NULL },
  2865.         {"NSData", "Foundation.NSData, Xamarin.iOS", NULL },
  2866.         {"NSDictionary", "Foundation.NSDictionary, Xamarin.iOS", NULL },
  2867.         {"NSMutableDictionary", "Foundation.NSMutableDictionary, Xamarin.iOS", NULL },
  2868.         {"AVCaptureDevice", "AVFoundation.AVCaptureDevice, Xamarin.iOS", NULL },
  2869.         {"AppDelegate", "GMPickerTest.AppDelegate, GMPickerTest", NULL },
  2870.         {"ViewController", "GMPickerTest.ViewController, GMPickerTest", NULL },
  2871.         {"__UIGestureRecognizerToken", "UIKit.UIGestureRecognizer+Token, Xamarin.iOS", NULL },
  2872.         {"__UIGestureRecognizerParameterlessToken", "UIKit.UIGestureRecognizer+ParameterlessDispatch, Xamarin.iOS", NULL },
  2873.         {"__UIGestureRecognizerParametrizedToken", "UIKit.UIGestureRecognizer+ParametrizedDispatch, Xamarin.iOS", NULL },
  2874.         {"UIKit_UIBarButtonItem_Callback", "UIKit.UIBarButtonItem+Callback, Xamarin.iOS", NULL },
  2875.         {"__NSObject_Disposer", "Foundation.NSObject+NSObject_Disposer, Xamarin.iOS", NULL },
  2876.         {"UIKit_UIScrollView__UIScrollViewDelegate", "UIKit.UIScrollView+_UIScrollViewDelegate, Xamarin.iOS", NULL },
  2877.         {"GMImagePicker_GMAlbumsViewCell", "GMImagePicker.GMAlbumsViewCell, GMImagePicker.Xamarin", NULL },
  2878.         {"GMImagePicker_GMGridViewCell", "GMImagePicker.GMGridViewCell, GMImagePicker.Xamarin", NULL },
  2879.         {"DummyClass", "GMImagePicker.DummyClass, GMImagePicker.Xamarin", NULL },
  2880.         {"GMImagePicker_GMGridViewController", "GMImagePicker.GMGridViewController, GMImagePicker.Xamarin", NULL },
  2881.         {"GMImagePicker_GMImagePickerController_GMNavigationControllerDelegate", "GMImagePicker.GMImagePickerController+GMNavigationControllerDelegate, GMImagePicker.Xamarin", NULL },
  2882.         {"GMImagePicker_GMImagePickerController", "GMImagePicker.GMImagePickerController, GMImagePicker.Xamarin", NULL },
  2883.         {"GMImagePicker_GMAlbumsViewController", "GMImagePicker.GMAlbumsViewController, GMImagePicker.Xamarin", NULL },
  2884.         {"GMImagePicker_GMGridViewController_GMGridViewCollectionViewSource", "GMImagePicker.GMGridViewController+GMGridViewCollectionViewSource, GMImagePicker.Xamarin", NULL },
  2885.         {"GMImagePicker_GMImagePickerController_GMImagePickerDelegate", "GMImagePicker.GMImagePickerController+GMImagePickerDelegate, GMImagePicker.Xamarin", NULL },
  2886.         {"GMImagePicker_GMAlbumsViewController_GMAlbumsViewTableViewSource", "GMImagePicker.GMAlbumsViewController+GMAlbumsViewTableViewSource, GMImagePicker.Xamarin", NULL },
  2887.         { NULL, NULL, NULL },
  2888.     };
  2889.  
  2890.     static const char *__xamarin_registration_assemblies []= {
  2891.         "GMPickerTest",
  2892.         "Xamarin.iOS",
  2893.         "mscorlib",
  2894.         "System",
  2895.         "System.Core",
  2896.         "GMImagePicker.Xamarin"
  2897.     };
  2898.  
  2899.     static struct MTRegistrationMap __xamarin_registration_map = {
  2900.         NULL,
  2901.         __xamarin_registration_assemblies,
  2902.         __xamarin_class_map,
  2903.         6,
  2904.         112,
  2905.         18
  2906.     };
  2907.  
  2908. void xamarin_create_classes () {
  2909.     __xamarin_class_map [0].handle = objc_getClass ("NSObject");
  2910.     __xamarin_class_map [1].handle = objc_getClass ("UIResponder");
  2911.     __xamarin_class_map [2].handle = objc_getClass ("UIViewController");
  2912.     __xamarin_class_map [3].handle = objc_getClass ("NSIndexPath");
  2913.     __xamarin_class_map [4].handle = objc_getClass ("PHFetchOptions");
  2914.     __xamarin_class_map [5].handle = objc_getClass ("NSIndexSet");
  2915.     __xamarin_class_map [6].handle = objc_getClass ("PHFetchResultChangeDetails");
  2916.     __xamarin_class_map [7].handle = objc_getClass ("PHImageManager");
  2917.     __xamarin_class_map [8].handle = objc_getClass ("UIFocusAnimationCoordinator");
  2918.     __xamarin_class_map [9].handle = objc_getClass ("UIFocusUpdateContext");
  2919.     __xamarin_class_map [10].handle = objc_getClass ("PHImageRequestOptions");
  2920.     __xamarin_class_map [11].handle = objc_getClass ("NSLayoutConstraint");
  2921.     __xamarin_class_map [12].handle = objc_getClass ("PHObject");
  2922.     __xamarin_class_map [13].handle = objc_getClass ("PHPhotoLibrary");
  2923.     __xamarin_class_map [14].handle = objc_getClass ("UIFont");
  2924.     __xamarin_class_map [15].handle = objc_getClass ("NSArray");
  2925.     __xamarin_class_map [16].handle = objc_getClass ("NSMutableArray");
  2926.     __xamarin_class_map [17].handle = objc_getClass ("UIApplication");
  2927.     __xamarin_class_map [18].handle = objc_getClass ("NSBundle");
  2928.     __xamarin_class_map [19].handle = objc_getClass ("UIBarItem");
  2929.     __xamarin_class_map [20].handle = objc_getClass ("UIBezierPath");
  2930.     __xamarin_class_map [21].handle = objc_getClass ("UIView");
  2931.     __xamarin_class_map [22].handle = objc_getClass ("UIControl");
  2932.     __xamarin_class_map [23].handle = objc_getClass ("UIButton");
  2933.     __xamarin_class_map [24].handle = objc_getClass ("NSCoder");
  2934.     __xamarin_class_map [25].handle = objc_getClass ("UIScrollView");
  2935.     __xamarin_class_map [26].handle = objc_getClass ("UICollectionView");
  2936.     __xamarin_class_map [27].handle = objc_getClass ("UICollectionViewLayout");
  2937.     __xamarin_class_map [28].handle = objc_getClass ("UICollectionViewLayoutAttributes");
  2938.     __xamarin_class_map [29].handle = objc_getClass ("UICollectionViewTransitionLayout");
  2939.     __xamarin_class_map [30].handle = objc_getClass ("UIColor");
  2940.     __xamarin_class_map [31].handle = objc_getClass ("UINavigationController");
  2941.     __xamarin_class_map [32].handle = objc_getClass ("UIImagePickerController");
  2942.     __xamarin_class_map [33].handle = objc_getClass ("UIKit_UIControlEventProxy");
  2943.     __xamarin_class_map [34].handle = objc_getClass ("UIDevice");
  2944.     __xamarin_class_map [35].handle = objc_getClass ("NSNull");
  2945.     __xamarin_class_map [36].handle = objc_getClass ("NSValue");
  2946.     __xamarin_class_map [37].handle = objc_getClass ("NSNumber");
  2947.     __xamarin_class_map [38].handle = objc_getClass ("UIImageView");
  2948.     __xamarin_class_map [39].handle = objc_getClass ("__MonoTouch_UIImageStatusDispatcher");
  2949.     __xamarin_class_map [40].handle = objc_getClass ("UINavigationBar");
  2950.     __xamarin_class_map [41].handle = objc_getClass ("UIPresentationController");
  2951.     __xamarin_class_map [42].handle = objc_getClass ("UIPopoverPresentationController");
  2952.     __xamarin_class_map [43].handle = objc_getClass ("NSPredicate");
  2953.     __xamarin_class_map [44].handle = objc_getClass ("NSRunLoop");
  2954.     __xamarin_class_map [45].handle = objc_getClass ("UIScreen");
  2955.     __xamarin_class_map [46].handle = objc_getClass ("UITableView");
  2956.     __xamarin_class_map [47].handle = objc_getClass ("UITableViewCell");
  2957.     __xamarin_class_map [48].handle = objc_getClass ("NSString");
  2958.     __xamarin_class_map [49].handle = objc_getClass ("UIToolbar");
  2959.     __xamarin_class_map [50].handle = objc_getClass ("NSURL");
  2960.     __xamarin_class_map [51].handle = objc_getClass ("NSSortDescriptor");
  2961.     __xamarin_class_map [52].handle = objc_getClass ("UILabel");
  2962.     __xamarin_class_map [53].handle = objc_getClass ("UILocalNotification");
  2963.     __xamarin_class_map [54].handle = objc_getClass ("UINavigationItem");
  2964.     __xamarin_class_map [55].handle = objc_getClass ("__MonoMac_NSActionDispatcher");
  2965.     __xamarin_class_map [56].handle = objc_getClass ("__MonoMac_NSAsyncActionDispatcher");
  2966.     __xamarin_class_map [57].handle = objc_getClass ("NSAutoreleasePool");
  2967.     __xamarin_class_map [58].handle = objc_getClass ("NSError");
  2968.     __xamarin_class_map [59].handle = objc_getClass ("CALayer");
  2969.     __xamarin_class_map [60].handle = objc_getClass ("CAGradientLayer");
  2970.     __xamarin_class_map [61].handle = objc_getClass ("NSUserActivity");
  2971.     __xamarin_class_map [62].handle = objc_getClass ("UIPress");
  2972.     __xamarin_class_map [63].handle = objc_getClass ("ALAssetsLibrary");
  2973.     __xamarin_class_map [64].handle = objc_getClass ("UITableViewController");
  2974.     __xamarin_class_map [65].handle = objc_getClass ("UITableViewFocusUpdateContext");
  2975.     __xamarin_class_map [66].handle = objc_getClass ("NSException");
  2976.     __xamarin_class_map [67].handle = objc_getClass ("UITableViewHeaderFooterView");
  2977.     __xamarin_class_map [68].handle = objc_getClass ("UITableViewRowAction");
  2978.     __xamarin_class_map [69].handle = objc_getClass ("PHAsset");
  2979.     __xamarin_class_map [70].handle = objc_getClass ("PHCollection");
  2980.     __xamarin_class_map [71].handle = objc_getClass ("PHAssetCollection");
  2981.     __xamarin_class_map [72].handle = objc_getClass ("PHCachingImageManager");
  2982.     __xamarin_class_map [73].handle = objc_getClass ("PHChange");
  2983.     __xamarin_class_map [74].handle = objc_getClass ("UIAlertAction");
  2984.     __xamarin_class_map [75].handle = objc_getClass ("UIAlertController");
  2985.     __xamarin_class_map [76].handle = objc_getClass ("UICollectionViewFlowLayout");
  2986.     __xamarin_class_map [77].handle = objc_getClass ("UICollectionViewFocusUpdateContext");
  2987.     __xamarin_class_map [78].handle = objc_getClass ("UICollectionReusableView");
  2988.     __xamarin_class_map [79].handle = objc_getClass ("UICollectionViewCell");
  2989.     __xamarin_class_map [80].handle = objc_getClass ("UIUserNotificationSettings");
  2990.     __xamarin_class_map [81].handle = objc_getClass ("UICollectionViewController");
  2991.     __xamarin_class_map [82].handle = objc_getClass ("UITouch");
  2992.     __xamarin_class_map [83].handle = objc_getClass ("UIWindow");
  2993.     __xamarin_class_map [84].handle = objc_getClass ("UITraitCollection");
  2994.     __xamarin_class_map [85].handle = objc_getClass ("UIApplicationShortcutItem");
  2995.     __xamarin_class_map [86].handle = objc_getClass ("PHFetchResult");
  2996.     __xamarin_class_map [87].handle = objc_getClass ("UIGestureRecognizer");
  2997.     __xamarin_class_map [88].handle = objc_getClass ("UIBarButtonItem");
  2998.     __xamarin_class_map [89].handle = objc_getClass ("UIImage");
  2999.     __xamarin_class_map [90].handle = objc_getClass ("NSData");
  3000.     __xamarin_class_map [91].handle = objc_getClass ("NSDictionary");
  3001.     __xamarin_class_map [92].handle = objc_getClass ("NSMutableDictionary");
  3002.     __xamarin_class_map [93].handle = objc_getClass ("AVCaptureDevice");
  3003.     __xamarin_class_map [94].handle = [AppDelegate class];
  3004.     __xamarin_class_map [95].handle = [ViewController class];
  3005.     __xamarin_class_map [96].handle = objc_getClass ("__UIGestureRecognizerToken");
  3006.     __xamarin_class_map [97].handle = objc_getClass ("__UIGestureRecognizerParameterlessToken");
  3007.     __xamarin_class_map [98].handle = objc_getClass ("__UIGestureRecognizerParametrizedToken");
  3008.     __xamarin_class_map [99].handle = objc_getClass ("UIKit_UIBarButtonItem_Callback");
  3009.     __xamarin_class_map [100].handle = objc_getClass ("__NSObject_Disposer");
  3010.     __xamarin_class_map [101].handle = objc_getClass ("UIKit_UIScrollView__UIScrollViewDelegate");
  3011.     __xamarin_class_map [102].handle = [GMImagePicker_GMAlbumsViewCell class];
  3012.     __xamarin_class_map [103].handle = [GMImagePicker_GMGridViewCell class];
  3013.     __xamarin_class_map [104].handle = [DummyClass class];
  3014.     __xamarin_class_map [105].handle = [GMImagePicker_GMGridViewController class];
  3015.     __xamarin_class_map [106].handle = [GMImagePicker_GMImagePickerController_GMNavigationControllerDelegate class];
  3016.     __xamarin_class_map [107].handle = [GMImagePicker_GMImagePickerController class];
  3017.     __xamarin_class_map [108].handle = [GMImagePicker_GMAlbumsViewController class];
  3018.     __xamarin_class_map [109].handle = [GMImagePicker_GMGridViewController_GMGridViewCollectionViewSource class];
  3019.     __xamarin_class_map [110].handle = [GMImagePicker_GMImagePickerController_GMImagePickerDelegate class];
  3020.     __xamarin_class_map [111].handle = [GMImagePicker_GMAlbumsViewController_GMAlbumsViewTableViewSource class];
  3021.     xamarin_add_registration_map (&__xamarin_registration_map);
  3022. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement