public unsafe HtmlInterstitialWebViewListener(global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener 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(HtmlInterstitialWebViewListener))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_, __args);
                } finally {
                }
            }
        public virtual unsafe void Init(global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p0, bool p1, string p2, string p3)
        {
            if (id_init_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_init_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "init", "(Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;ZLjava/lang/String;Ljava/lang/String;)V");
            }
            IntPtr native_p2 = JNIEnv.NewString(p2);
            IntPtr native_p3 = JNIEnv.NewString(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_init_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "init", "(Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;ZLjava/lang/String;Ljava/lang/String;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
        static void n_Init_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, bool p1, IntPtr native_p2, IntPtr native_p3)
        {
            global::com.mopub.mobileads.HtmlInterstitialWebView __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.HtmlInterstitialWebView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p0 = (global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener)global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer);
            string p3 = JNIEnv.GetString(native_p3, JniHandleOwnership.DoNotTransfer);

            __this.Init(p0, p1, p2, p3);
        }
        static IntPtr n_InternalCreate_Landroid_content_Context_Lcom_mopub_common_AdReport_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, bool p3, IntPtr native_p4, IntPtr native_p5)
        {
            global::Com.Mopub.Mobileads.Factories.HtmlInterstitialWebViewFactory __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Mobileads.Factories.HtmlInterstitialWebViewFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Context   p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::com.mopub.common.AdReport p1 = global::Java.Lang.Object.GetObject <global::com.mopub.common.AdReport> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p2 = (global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener)global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener> (native_p2, JniHandleOwnership.DoNotTransfer);
            string p4    = JNIEnv.GetString(native_p4, JniHandleOwnership.DoNotTransfer);
            string p5    = JNIEnv.GetString(native_p5, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.InternalCreate(p0, p1, p2, p3, p4, p5));

            return(__ret);
        }
        public static unsafe global::com.mopub.mobileads.HtmlInterstitialWebView Create(global::Android.Content.Context p0, global::com.mopub.common.AdReport p1, global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p2, bool p3, string p4, string p5)
        {
            if (id_create_Landroid_content_Context_Lcom_mopub_common_AdReport_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_create_Landroid_content_Context_Lcom_mopub_common_AdReport_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "create", "(Landroid/content/Context;Lcom/mopub/common/AdReport;Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;ZLjava/lang/String;Ljava/lang/String;)Lcom/mopub/mobileads/HtmlInterstitialWebView;");
            }
            IntPtr native_p4 = JNIEnv.NewString(p4);
            IntPtr native_p5 = JNIEnv.NewString(p5);

            try {
                JValue *__args = stackalloc JValue [6];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                __args [5] = new JValue(native_p5);
                global::com.mopub.mobileads.HtmlInterstitialWebView __ret = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.HtmlInterstitialWebView> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Landroid_content_Context_Lcom_mopub_common_AdReport_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_ZLjava_lang_String_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p4);
                JNIEnv.DeleteLocalRef(native_p5);
            }
        }
Example #6
0
 static void n_OnInterstitialClicked(IntPtr jnienv, IntPtr native__this)
 {
     global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.OnInterstitialClicked();
 }
Example #7
0
        protected override unsafe void LoadInterstitial(global::Android.Content.Context p0, global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p1, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p2, global::System.Collections.Generic.IDictionary <string, string> p3)
        {
            if (id_loadInterstitial_Landroid_content_Context_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_Ljava_util_Map_Ljava_util_Map_ == IntPtr.Zero)
            {
                id_loadInterstitial_Landroid_content_Context_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_Ljava_util_Map_Ljava_util_Map_ = JNIEnv.GetMethodID(class_ref, "loadInterstitial", "(Landroid/content/Context;Lcom/mopub/mobileads/CustomEventInterstitial$CustomEventInterstitialListener;Ljava/util/Map;Ljava/util/Map;)V");
            }
            IntPtr native_p2 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .ToLocalJniHandle(p2);

            IntPtr native_p3 = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_loadInterstitial_Landroid_content_Context_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_Ljava_util_Map_Ljava_util_Map_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
Example #8
0
 protected abstract void LoadInterstitial(global::Android.Content.Context p0, global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p1, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Object> p2, global::System.Collections.Generic.IDictionary <string, string> p3);
Example #9
0
        static void n_LoadInterstitial_Landroid_content_Context_Lcom_mopub_mobileads_CustomEventInterstitial_CustomEventInterstitialListener_Ljava_util_Map_Ljava_util_Map_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3)
        {
            global::com.mopub.mobileads.CustomEventInterstitial __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener p1 = (global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener)global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener> (native_p1, JniHandleOwnership.DoNotTransfer);
            var p2 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Object> .FromJniHandle(native_p2, JniHandleOwnership.DoNotTransfer);

            var p3 = global::Android.Runtime.JavaDictionary <string, string> .FromJniHandle(native_p3, JniHandleOwnership.DoNotTransfer);

            __this.LoadInterstitial(p0, p1, p2, p3);
        }
Example #10
0
 static void n_OnInterstitialFailed_Lcom_mopub_mobileads_MoPubErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial.ICustomEventInterstitialListener> (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);
 }