public unsafe AdRequestStatus(global::com.mopub.mobileads.AdRequestStatusMapping.LoadingStatus p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (((object)this).GetType() != typeof(AdRequestStatus)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/mopub/mobileads/AdRequestStatusMapping$LoadingStatus;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/mopub/mobileads/AdRequestStatusMapping$LoadingStatus;)V", __args); return; } if (id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_ == IntPtr.Zero) { id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mopub/mobileads/AdRequestStatusMapping$LoadingStatus;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_, __args); } finally { } }
public unsafe AdRequestStatus(global::com.mopub.mobileads.AdRequestStatusMapping.LoadingStatus p0, string p1, string p2, string p3) : 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 [4]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); if (((object)this).GetType() != typeof(AdRequestStatus)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/mopub/mobileads/AdRequestStatusMapping$LoadingStatus;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/mopub/mobileads/AdRequestStatusMapping$LoadingStatus;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", __args); return; } if (id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ == IntPtr.Zero) { id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mopub/mobileads/AdRequestStatusMapping$LoadingStatus;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mopub_mobileads_AdRequestStatusMapping_LoadingStatus_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_, __args); } finally { JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p2); JNIEnv.DeleteLocalRef(native_p3); } }