Esempio n. 1
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);
        }
        public static unsafe global::com.mopub.mobileads.CustomEventInterstitial Create(string p0)
        {
            if (id_create_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_create_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "create", "(Ljava/lang/String;)Lcom/mopub/mobileads/CustomEventInterstitial;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::com.mopub.mobileads.CustomEventInterstitial __ret = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Esempio n. 3
0
 static void n_ShowInterstitial(IntPtr jnienv, IntPtr native__this)
 {
     global::com.mopub.mobileads.CustomEventInterstitial __this = global::Java.Lang.Object.GetObject <global::com.mopub.mobileads.CustomEventInterstitial> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.ShowInterstitial();
 }