public unsafe MoPubNative(global::Android.App.Activity p0, string p1, global::Com.Mopub.Nativeads.MoPubNative.IMoPubNativeNetworkListener p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                if (((object)this).GetType() != typeof(MoPubNative))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/app/Activity;Ljava/lang/String;Lcom/mopub/nativeads/MoPubNative$MoPubNativeNetworkListener;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/app/Activity;Ljava/lang/String;Lcom/mopub/nativeads/MoPubNative$MoPubNativeNetworkListener;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_app_Activity_Ljava_lang_String_Lcom_mopub_nativeads_MoPubNative_MoPubNativeNetworkListener_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_app_Activity_Ljava_lang_String_Lcom_mopub_nativeads_MoPubNative_MoPubNativeNetworkListener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/app/Activity;Ljava/lang/String;Lcom/mopub/nativeads/MoPubNative$MoPubNativeNetworkListener;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_app_Activity_Ljava_lang_String_Lcom_mopub_nativeads_MoPubNative_MoPubNativeNetworkListener_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_app_Activity_Ljava_lang_String_Lcom_mopub_nativeads_MoPubNative_MoPubNativeNetworkListener_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
 static void n_OnNativeFail_Lcom_mopub_nativeads_NativeErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mopub.Nativeads.MoPubNative.IMoPubNativeNetworkListener __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.MoPubNative.IMoPubNativeNetworkListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mopub.Nativeads.NativeErrorCode p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeErrorCode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnNativeFail(p0);
 }