static int n_GetViewTypeForAd_Lcom_mopub_nativeads_NativeAd_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Mopub.Nativeads.AdRendererRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.AdRendererRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Mopub.Nativeads.NativeAd           p0     = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (native_p0, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.GetViewTypeForAd(p0);

            return(__ret);
        }
Ejemplo n.º 2
0
        static IntPtr n_CreateAdView_Landroid_app_Activity_Landroid_view_ViewGroup_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.App.Activity         p0     = global::Java.Lang.Object.GetObject <global::Android.App.Activity> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Android.Views.ViewGroup      p1     = global::Java.Lang.Object.GetObject <global::Android.Views.ViewGroup> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.CreateAdView(p0, p1));

            return(__ret);
        }
#pragma warning restore 0649

            public void OnNativeLoad(global::Com.Mopub.Nativeads.NativeAd p0)
            {
                var __h = OnNativeLoadHandler;

                if (__h != null)
                {
                    __h(sender, new NativeLoadEventArgs(p0));
                }
            }
            public unsafe void OnNativeLoad(global::Com.Mopub.Nativeads.NativeAd p0)
            {
                if (id_onNativeLoad_Lcom_mopub_nativeads_NativeAd_ == IntPtr.Zero)
                {
                    id_onNativeLoad_Lcom_mopub_nativeads_NativeAd_ = JNIEnv.GetMethodID(class_ref, "onNativeLoad", "(Lcom/mopub/nativeads/NativeAd;)V");
                }
                JValue *__args = stackalloc JValue [1];

                __args [0] = new JValue(p0);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onNativeLoad_Lcom_mopub_nativeads_NativeAd_, __args);
            }
        public virtual unsafe int GetViewTypeForAd(global::Com.Mopub.Nativeads.NativeAd p0)
        {
            if (id_getViewTypeForAd_Lcom_mopub_nativeads_NativeAd_ == IntPtr.Zero)
            {
                id_getViewTypeForAd_Lcom_mopub_nativeads_NativeAd_ = JNIEnv.GetMethodID(class_ref, "getViewTypeForAd", "(Lcom/mopub/nativeads/NativeAd;)I");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                int __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_getViewTypeForAd_Lcom_mopub_nativeads_NativeAd_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getViewTypeForAd", "(Lcom/mopub/nativeads/NativeAd;)I"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Ejemplo n.º 6
0
 public unsafe global::Android.Views.View GetAdView(global::Android.Views.View p0, global::Android.Views.ViewGroup p1, global::Com.Mopub.Nativeads.NativeAd p2, global::Com.Mopub.Nativeads.ViewBinder p3)
 {
     if (id_getAdView_Landroid_view_View_Landroid_view_ViewGroup_Lcom_mopub_nativeads_NativeAd_Lcom_mopub_nativeads_ViewBinder_ == IntPtr.Zero)
     {
         id_getAdView_Landroid_view_View_Landroid_view_ViewGroup_Lcom_mopub_nativeads_NativeAd_Lcom_mopub_nativeads_ViewBinder_ = JNIEnv.GetMethodID(class_ref, "getAdView", "(Landroid/view/View;Landroid/view/ViewGroup;Lcom/mopub/nativeads/NativeAd;Lcom/mopub/nativeads/ViewBinder;)Landroid/view/View;");
     }
     try {
         JValue *__args = stackalloc JValue [4];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         global::Android.Views.View __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getAdView_Landroid_view_View_Landroid_view_ViewGroup_Lcom_mopub_nativeads_NativeAd_Lcom_mopub_nativeads_ViewBinder_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public NativeLoadEventArgs(global::Com.Mopub.Nativeads.NativeAd p0)
 {
     this.p0 = p0;
 }
 static void n_OnNativeLoad_Lcom_mopub_nativeads_NativeAd_(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.NativeAd p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnNativeLoad(p0);
 }
Ejemplo n.º 9
0
 static void n_SetMoPubNativeEventListener_Lcom_mopub_nativeads_NativeAd_MoPubNativeEventListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mopub.Nativeads.NativeAd.IMoPubNativeEventListener p0 = (global::Com.Mopub.Nativeads.NativeAd.IMoPubNativeEventListener)global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd.IMoPubNativeEventListener> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetMoPubNativeEventListener(p0);
 }
Ejemplo n.º 10
0
 static void n_RenderAdView_Landroid_view_View_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Views.View           p0     = global::Java.Lang.Object.GetObject <global::Android.Views.View> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.RenderAdView(p0);
 }
Ejemplo n.º 11
0
 static void n_Destroy(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Destroy();
 }
Ejemplo n.º 12
0
 static IntPtr n_GetMoPubAdRenderer(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.MoPubAdRenderer));
 }
Ejemplo n.º 13
0
 static bool n_IsDestroyed(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsDestroyed);
 }
Ejemplo n.º 14
0
 static IntPtr n_GetAdUnitId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mopub.Nativeads.NativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.AdUnitId));
 }