public unsafe void Record(global::com.mopub.common.events.BaseEvent p0) { if (id_record_Lcom_mopub_common_event_BaseEvent_ == IntPtr.Zero) { id_record_Lcom_mopub_common_event_BaseEvent_ = JNIEnv.GetMethodID(class_ref, "record", "(Lcom/mopub/common/event/BaseEvent;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_record_Lcom_mopub_common_event_BaseEvent_, __args); }
public static unsafe void Log(global::com.mopub.common.events.BaseEvent p0) { if (id_log_Lcom_mopub_common_event_BaseEvent_ == IntPtr.Zero) { id_log_Lcom_mopub_common_event_BaseEvent_ = JNIEnv.GetStaticMethodID(class_ref, "log", "(Lcom/mopub/common/event/BaseEvent;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallStaticVoidMethod(class_ref, id_log_Lcom_mopub_common_event_BaseEvent_, __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 { } }
public virtual unsafe void Record(global::com.mopub.common.events.BaseEvent p0) { if (id_record_Lcom_mopub_common_event_BaseEvent_ == IntPtr.Zero) { id_record_Lcom_mopub_common_event_BaseEvent_ = JNIEnv.GetMethodID(class_ref, "record", "(Lcom/mopub/common/event/BaseEvent;)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_record_Lcom_mopub_common_event_BaseEvent_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "record", "(Lcom/mopub/common/event/BaseEvent;)V"), __args); } } finally { } }
static void n_Record_Lcom_mopub_common_event_BaseEvent_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::com.mopub.common.events.ScribeEventRecorder __this = global::Java.Lang.Object.GetObject <global::com.mopub.common.events.ScribeEventRecorder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::com.mopub.common.events.BaseEvent p0 = global::Java.Lang.Object.GetObject <global::com.mopub.common.events.BaseEvent> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Record(p0); }