public virtual unsafe void AddLifecycleListener(global::com.mopub.common.ILifecycleListener p0) { if (id_addLifecycleListener_Lcom_mopub_common_LifecycleListener_ == IntPtr.Zero) { id_addLifecycleListener_Lcom_mopub_common_LifecycleListener_ = JNIEnv.GetMethodID(class_ref, "addLifecycleListener", "(Lcom/mopub/common/LifecycleListener;)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_addLifecycleListener_Lcom_mopub_common_LifecycleListener_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addLifecycleListener", "(Lcom/mopub/common/LifecycleListener;)V"), __args); } } finally { } }
static void n_AddLifecycleListener_Lcom_mopub_common_LifecycleListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::com.mopub.common.MoPubLifecycleManager __this = global::Java.Lang.Object.GetObject <global::com.mopub.common.MoPubLifecycleManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::com.mopub.common.ILifecycleListener p0 = (global::com.mopub.common.ILifecycleListener)global::Java.Lang.Object.GetObject <global::com.mopub.common.ILifecycleListener> (native_p0, JniHandleOwnership.DoNotTransfer); __this.AddLifecycleListener(p0); }
static void n_OnBackPressed_Landroid_app_Activity_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::com.mopub.common.ILifecycleListener __this = global::Java.Lang.Object.GetObject <global::com.mopub.common.ILifecycleListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.App.Activity p0 = global::Java.Lang.Object.GetObject <global::Android.App.Activity> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnBackPressed(p0); }