public unsafe Builder(global::com.mopub.common.events.BaseEvent.Name p0, global::com.mopub.common.events.BaseEvent.Category p1, double p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (((object)this).GetType() != typeof(Builder)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/mopub/common/event/BaseEvent$Name;Lcom/mopub/common/event/BaseEvent$Category;D)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/mopub/common/event/BaseEvent$Name;Lcom/mopub/common/event/BaseEvent$Category;D)V", __args); return; } if (id_ctor_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_D == IntPtr.Zero) { id_ctor_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_D = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mopub/common/event/BaseEvent$Name;Lcom/mopub/common/event/BaseEvent$Category;D)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_D, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_D, __args); } finally { } }
public static unsafe global::com.mopub.common.events.BaseEvent CreateEventFromDetails(global::com.mopub.common.events.BaseEvent.Name p0, global::com.mopub.common.events.BaseEvent.Category p1, global::com.mopub.common.events.BaseEvent.SamplingRate p2, global::com.mopub.common.events.EventDetails p3) { if (id_createEventFromDetails_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_Lcom_mopub_common_event_BaseEvent_SamplingRate_Lcom_mopub_common_event_EventDetails_ == IntPtr.Zero) { id_createEventFromDetails_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_Lcom_mopub_common_event_BaseEvent_SamplingRate_Lcom_mopub_common_event_EventDetails_ = JNIEnv.GetStaticMethodID(class_ref, "createEventFromDetails", "(Lcom/mopub/common/event/BaseEvent$Name;Lcom/mopub/common/event/BaseEvent$Category;Lcom/mopub/common/event/BaseEvent$SamplingRate;Lcom/mopub/common/event/EventDetails;)Lcom/mopub/common/event/BaseEvent;"); } try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); global::com.mopub.common.events.BaseEvent __ret = global::Java.Lang.Object.GetObject <global::com.mopub.common.events.BaseEvent> (JNIEnv.CallStaticObjectMethod(class_ref, id_createEventFromDetails_Lcom_mopub_common_event_BaseEvent_Name_Lcom_mopub_common_event_BaseEvent_Category_Lcom_mopub_common_event_BaseEvent_SamplingRate_Lcom_mopub_common_event_EventDetails_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }