static void n_SetOnClickListener_Landroid_view_View_Lcom_mopub_nativeads_ClickInterface_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Mopub.Nativeads.NativeClickHandler __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeClickHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.View p0 = global::Java.Lang.Object.GetObject <global::Android.Views.View> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Mopub.Nativeads.IClickInterface p1 = (global::Com.Mopub.Nativeads.IClickInterface)global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.IClickInterface> (native_p1, JniHandleOwnership.DoNotTransfer); __this.SetOnClickListener(p0, p1); }
public virtual unsafe void SetOnClickListener(global::Android.Views.View p0, global::Com.Mopub.Nativeads.IClickInterface p1) { if (id_setOnClickListener_Landroid_view_View_Lcom_mopub_nativeads_ClickInterface_ == IntPtr.Zero) { id_setOnClickListener_Landroid_view_View_Lcom_mopub_nativeads_ClickInterface_ = JNIEnv.GetMethodID(class_ref, "setOnClickListener", "(Landroid/view/View;Lcom/mopub/nativeads/ClickInterface;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setOnClickListener_Landroid_view_View_Lcom_mopub_nativeads_ClickInterface_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setOnClickListener", "(Landroid/view/View;Lcom/mopub/nativeads/ClickInterface;)V"), __args); } } finally { } }
static void n_HandleClick_Landroid_view_View_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mopub.Nativeads.IClickInterface __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.IClickInterface> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.View p0 = global::Java.Lang.Object.GetObject <global::Android.Views.View> (native_p0, JniHandleOwnership.DoNotTransfer); __this.HandleClick(p0); }