public unsafe CancellableAsyncTask(global::Artifex.MuPdf.ICancellableTaskDefinition p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                if (((object)this).GetType() != typeof(CancellableAsyncTask))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/artifex/mupdfdemo/CancellableTaskDefinition;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/artifex/mupdfdemo/CancellableTaskDefinition;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_artifex_mupdfdemo_CancellableTaskDefinition_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_artifex_mupdfdemo_CancellableTaskDefinition_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/artifex/mupdfdemo/CancellableTaskDefinition;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_artifex_mupdfdemo_CancellableTaskDefinition_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_artifex_mupdfdemo_CancellableTaskDefinition_, __args);
            } finally {
            }
        }
Exemplo n.º 2
0
        static IntPtr n_DoInBackground_arrayLjava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Artifex.MuPdf.ICancellableTaskDefinition __this = global::Java.Lang.Object.GetObject <global::Artifex.MuPdf.ICancellableTaskDefinition> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object[] p0 = (global::Java.Lang.Object[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(global::Java.Lang.Object));
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.DoInBackground(p0));

            if (p0 != null)
            {
                JNIEnv.CopyArray(p0, native_p0);
            }
            return(__ret);
        }
Exemplo n.º 3
0
 static void n_DoCancel(IntPtr jnienv, IntPtr native__this)
 {
     global::Artifex.MuPdf.ICancellableTaskDefinition __this = global::Java.Lang.Object.GetObject <global::Artifex.MuPdf.ICancellableTaskDefinition> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.DoCancel();
 }