Пример #1
0
        public unsafe UploadImageTask(global::Com.Liveperson.Messaging.Background.Filesharing.Image.UploadImageTaskBundle p0, global::Java.Lang.Integer p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(UploadImageTask))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/background/filesharing/image/UploadImageTaskBundle;Ljava/lang/Integer;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/background/filesharing/image/UploadImageTaskBundle;Ljava/lang/Integer;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_background_filesharing_image_UploadImageTaskBundle_Ljava_lang_Integer_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_background_filesharing_image_UploadImageTaskBundle_Ljava_lang_Integer_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/background/filesharing/image/UploadImageTaskBundle;Ljava/lang/Integer;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_background_filesharing_image_UploadImageTaskBundle_Ljava_lang_Integer_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_background_filesharing_image_UploadImageTaskBundle_Ljava_lang_Integer_, __args);
            } finally {
            }
        }
 static bool n_IsImageFromCamera(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.Image.UploadImageTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.Image.UploadImageTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsImageFromCamera);
 }
 static IntPtr n_AddImageFromCamera_Z(IntPtr jnienv, IntPtr native__this, bool p0)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.Image.UploadImageTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.Image.UploadImageTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.AddImageFromCamera(p0)));
 }