public virtual unsafe void SetOnCloseListener(global::com.mopub.common.CloseableLayout.IOnCloseListener p0) { if (id_setOnCloseListener_Lcom_mopub_common_CloseableLayout_OnCloseListener_ == IntPtr.Zero) { id_setOnCloseListener_Lcom_mopub_common_CloseableLayout_OnCloseListener_ = JNIEnv.GetMethodID(class_ref, "setOnCloseListener", "(Lcom/mopub/common/CloseableLayout$OnCloseListener;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setOnCloseListener_Lcom_mopub_common_CloseableLayout_OnCloseListener_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setOnCloseListener", "(Lcom/mopub/common/CloseableLayout$OnCloseListener;)V"), __args); } } finally { } }
static void n_SetOnCloseListener_Lcom_mopub_common_CloseableLayout_OnCloseListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::com.mopub.common.CloseableLayout __this = global::Java.Lang.Object.GetObject <global::com.mopub.common.CloseableLayout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::com.mopub.common.CloseableLayout.IOnCloseListener p0 = (global::com.mopub.common.CloseableLayout.IOnCloseListener)global::Java.Lang.Object.GetObject <global::com.mopub.common.CloseableLayout.IOnCloseListener> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetOnCloseListener(p0); }
static void n_OnClose(IntPtr jnienv, IntPtr native__this) { global::com.mopub.common.CloseableLayout.IOnCloseListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.common.CloseableLayout.IOnCloseListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnClose(); }