static void n_OnBannerFailed_Lcom_mopub_mobileads_MoPubView_Lcom_mopub_mobileads_MoPubErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::com.mopub.mobileads.DefaultBannerAdListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.DefaultBannerAdListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::com.mopub.mobileads.MoPubView      p0 = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubView> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::com.mopub.mobileads.MoPubErrorCode p1 = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubErrorCode> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnBannerFailed(p0, p1);
 }
        static void n_OnRewardedVideoPlaybackError_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::com.mopub.mobileads.IMoPubRewardedVideoListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.IMoPubRewardedVideoListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::com.mopub.mobileads.MoPubErrorCode p1 = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubErrorCode> (native_p1, JniHandleOwnership.DoNotTransfer);
            __this.OnRewardedVideoPlaybackError(p0, p1);
        }
#pragma warning restore 0649

        public void OnRewardedVideoPlaybackError(string p0, global::com.mopub.mobileads.MoPubErrorCode p1)
        {
            var __h = OnRewardedVideoPlaybackErrorHandler;

            if (__h != null)
            {
                __h(sender, new RewardedVideoPlaybackErrorEventArgs(p0, p1));
            }
        }
#pragma warning restore 0649

        public void OnFailed(global::com.mopub.mobileads.MoPubErrorCode p0)
        {
            var __h = OnFailedHandler;

            if (__h != null)
            {
                __h(sender, new FailedEventArgs(p0));
            }
        }
        public unsafe void OnFailed(global::com.mopub.mobileads.MoPubErrorCode p0)
        {
            if (id_onFailed_Lcom_mopub_mobileads_MoPubErrorCode_ == IntPtr.Zero)
            {
                id_onFailed_Lcom_mopub_mobileads_MoPubErrorCode_ = JNIEnv.GetMethodID(class_ref, "onFailed", "(Lcom/mopub/mobileads/MoPubErrorCode;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onFailed_Lcom_mopub_mobileads_MoPubErrorCode_, __args);
        }
        public unsafe void OnRewardedVideoPlaybackError(string p0, global::com.mopub.mobileads.MoPubErrorCode p1)
        {
            if (id_onRewardedVideoPlaybackError_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_ == IntPtr.Zero)
            {
                id_onRewardedVideoPlaybackError_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_ = JNIEnv.GetMethodID(class_ref, "onRewardedVideoPlaybackError", "(Ljava/lang/String;Lcom/mopub/mobileads/MoPubErrorCode;)V");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [2];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue(p1);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onRewardedVideoPlaybackError_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_, __args);
            JNIEnv.DeleteLocalRef(native_p0);
        }
        public static unsafe global::com.mopub.mobileads.MoPubErrorCode ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/mopub/mobileads/MoPubErrorCode;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::com.mopub.mobileads.MoPubErrorCode __ret = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubErrorCode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
            public virtual unsafe void OnInterstitialFailed(global::com.mopub.mobileads.MoPubErrorCode p0)
            {
                if (id_onInterstitialFailed_Lcom_mopub_mobileads_MoPubErrorCode_ == IntPtr.Zero)
                {
                    id_onInterstitialFailed_Lcom_mopub_mobileads_MoPubErrorCode_ = JNIEnv.GetMethodID(class_ref, "onInterstitialFailed", "(Lcom/mopub/mobileads/MoPubErrorCode;)V");
                }
                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(p0);

                    if (((object)this).GetType() == ThresholdType)
                    {
                        JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onInterstitialFailed_Lcom_mopub_mobileads_MoPubErrorCode_, __args);
                    }
                    else
                    {
                        JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onInterstitialFailed", "(Lcom/mopub/mobileads/MoPubErrorCode;)V"), __args);
                    }
                } finally {
                }
            }
 static void n_OnInterstitialFailed_Lcom_mopub_mobileads_MoPubErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::com.mopub.mobileads.MoPubActivity.BroadcastingInterstitialListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubActivity.BroadcastingInterstitialListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::com.mopub.mobileads.MoPubErrorCode p0 = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubErrorCode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnInterstitialFailed(p0);
 }
 public RewardedVideoPlaybackErrorEventArgs(string p0, global::com.mopub.mobileads.MoPubErrorCode p1)
 {
     this.p0 = p0;
     this.p1 = p1;
 }
 public RewardedVideoLoadFailureEventArgs(string p0, global::com.mopub.mobileads.MoPubErrorCode p1)
 {
     this.p0 = p0;
     this.p1 = p1;
 }
        public static unsafe void OnRewardedVideoPlaybackError(global::Java.Lang.Class p0, string p1, global::com.mopub.mobileads.MoPubErrorCode p2)
        {
            if (id_onRewardedVideoPlaybackError_Ljava_lang_Class_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_ == IntPtr.Zero)
            {
                id_onRewardedVideoPlaybackError_Ljava_lang_Class_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_ = JNIEnv.GetStaticMethodID(class_ref, "onRewardedVideoPlaybackError", "(Ljava/lang/Class;Ljava/lang/String;Lcom/mopub/mobileads/MoPubErrorCode;)V");
            }
            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);
                JNIEnv.CallStaticVoidMethod(class_ref, id_onRewardedVideoPlaybackError_Ljava_lang_Class_Ljava_lang_String_Lcom_mopub_mobileads_MoPubErrorCode_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
 public FailedEventArgs(global::com.mopub.mobileads.MoPubErrorCode p0)
 {
     this.p0 = p0;
 }
 static void n_OnFailed_Lcom_mopub_mobileads_MoPubErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::com.mopub.mobileads.IHtmlWebViewListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.IHtmlWebViewListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::com.mopub.mobileads.MoPubErrorCode       p0     = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.MoPubErrorCode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnFailed(p0);
 }