static IntPtr n_GetRendererForAd_Lcom_mopub_nativeads_BaseNativeAd_(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.BaseNativeAd p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetRendererForAd(p0)); return(__ret); }
static bool n_Supports_Lcom_mopub_nativeads_BaseNativeAd_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mopub.Nativeads.IMoPubAdRenderer __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.IMoPubAdRenderer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mopub.Nativeads.BaseNativeAd p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd> (native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.Supports(p0); return(__ret); }
#pragma warning restore 0649 public void OnNativeAdLoaded(global::Com.Mopub.Nativeads.BaseNativeAd p0) { var __h = OnNativeAdLoadedHandler; if (__h != null) { __h(sender, new NativeAdLoadedEventArgs(p0)); } }
public unsafe void OnNativeAdLoaded(global::Com.Mopub.Nativeads.BaseNativeAd p0) { if (id_onNativeAdLoaded_Lcom_mopub_nativeads_BaseNativeAd_ == IntPtr.Zero) { id_onNativeAdLoaded_Lcom_mopub_nativeads_BaseNativeAd_ = JNIEnv.GetMethodID(class_ref, "onNativeAdLoaded", "(Lcom/mopub/nativeads/BaseNativeAd;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onNativeAdLoaded_Lcom_mopub_nativeads_BaseNativeAd_, __args); }
public unsafe bool Supports(global::Com.Mopub.Nativeads.BaseNativeAd p0) { if (id_supports_Lcom_mopub_nativeads_BaseNativeAd_ == IntPtr.Zero) { id_supports_Lcom_mopub_nativeads_BaseNativeAd_ = JNIEnv.GetMethodID(class_ref, "supports", "(Lcom/mopub/nativeads/BaseNativeAd;)Z"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_supports_Lcom_mopub_nativeads_BaseNativeAd_, __args); return(__ret); }
public virtual unsafe bool Supports(global::Com.Mopub.Nativeads.BaseNativeAd p0) { if (id_supports_Lcom_mopub_nativeads_BaseNativeAd_ == IntPtr.Zero) { id_supports_Lcom_mopub_nativeads_BaseNativeAd_ = JNIEnv.GetMethodID(class_ref, "supports", "(Lcom/mopub/nativeads/BaseNativeAd;)Z"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); bool __ret; if (((object)this).GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_supports_Lcom_mopub_nativeads_BaseNativeAd_, __args); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "supports", "(Lcom/mopub/nativeads/BaseNativeAd;)Z"), __args); } return(__ret); } finally { } }
static void n_SetNativeEventListener_Lcom_mopub_nativeads_BaseNativeAd_NativeEventListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mopub.Nativeads.BaseNativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mopub.Nativeads.BaseNativeAd.INativeEventListener p0 = (global::Com.Mopub.Nativeads.BaseNativeAd.INativeEventListener)global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd.INativeEventListener> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetNativeEventListener(p0); }
static void n_Prepare_Landroid_view_View_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mopub.Nativeads.BaseNativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.View p0 = global::Java.Lang.Object.GetObject <global::Android.Views.View> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Prepare(p0); }
static void n_Destroy(IntPtr jnienv, IntPtr native__this) { global::Com.Mopub.Nativeads.BaseNativeAd __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Destroy(); }
public virtual unsafe global::Com.Mopub.Nativeads.IMoPubAdRenderer GetRendererForAd(global::Com.Mopub.Nativeads.BaseNativeAd p0) { if (id_getRendererForAd_Lcom_mopub_nativeads_BaseNativeAd_ == IntPtr.Zero) { id_getRendererForAd_Lcom_mopub_nativeads_BaseNativeAd_ = JNIEnv.GetMethodID(class_ref, "getRendererForAd", "(Lcom/mopub/nativeads/BaseNativeAd;)Lcom/mopub/nativeads/MoPubAdRenderer;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Com.Mopub.Nativeads.IMoPubAdRenderer __ret; if (((object)this).GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.IMoPubAdRenderer> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getRendererForAd_Lcom_mopub_nativeads_BaseNativeAd_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.IMoPubAdRenderer> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getRendererForAd", "(Lcom/mopub/nativeads/BaseNativeAd;)Lcom/mopub/nativeads/MoPubAdRenderer;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
public unsafe NativeAd(global::Android.Content.Context p0, string p1, string p2, string p3, global::Com.Mopub.Nativeads.BaseNativeAd p4, global::Com.Mopub.Nativeads.IMoPubAdRenderer p5) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p1 = JNIEnv.NewString(p1); IntPtr native_p2 = JNIEnv.NewString(p2); IntPtr native_p3 = JNIEnv.NewString(p3); try { JValue *__args = stackalloc JValue [6]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); if (((object)this).GetType() != typeof(NativeAd)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/mopub/nativeads/BaseNativeAd;Lcom/mopub/nativeads/MoPubAdRenderer;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/mopub/nativeads/BaseNativeAd;Lcom/mopub/nativeads/MoPubAdRenderer;)V", __args); return; } if (id_ctor_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_nativeads_BaseNativeAd_Lcom_mopub_nativeads_MoPubAdRenderer_ == IntPtr.Zero) { id_ctor_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_nativeads_BaseNativeAd_Lcom_mopub_nativeads_MoPubAdRenderer_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/mopub/nativeads/BaseNativeAd;Lcom/mopub/nativeads/MoPubAdRenderer;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_nativeads_BaseNativeAd_Lcom_mopub_nativeads_MoPubAdRenderer_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_mopub_nativeads_BaseNativeAd_Lcom_mopub_nativeads_MoPubAdRenderer_, __args); } finally { JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p2); JNIEnv.DeleteLocalRef(native_p3); } }
public NativeAdLoadedEventArgs(global::Com.Mopub.Nativeads.BaseNativeAd p0) { this.p0 = p0; }
static void n_OnNativeAdLoaded_Lcom_mopub_nativeads_BaseNativeAd_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mopub.Nativeads.CustomEventNative.ICustomEventNativeListener __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.CustomEventNative.ICustomEventNativeListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mopub.Nativeads.BaseNativeAd p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.BaseNativeAd> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnNativeAdLoaded(p0); }