public static unsafe global::Com.Instabug.Library.InstabugAudioRecordingFragment NewInstance(string p0, global::Com.Instabug.Library.InstabugAudioRecordingFragment.ICallbacks p1) { if (id_newInstance_Ljava_lang_String_Lcom_instabug_library_InstabugAudioRecordingFragment_Callbacks_ == IntPtr.Zero) { id_newInstance_Ljava_lang_String_Lcom_instabug_library_InstabugAudioRecordingFragment_Callbacks_ = JNIEnv.GetStaticMethodID(class_ref, "newInstance", "(Ljava/lang/String;Lcom/instabug/library/InstabugAudioRecordingFragment$Callbacks;)Lcom/instabug/library/InstabugAudioRecordingFragment;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); global::Com.Instabug.Library.InstabugAudioRecordingFragment __ret = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugAudioRecordingFragment> (JNIEnv.CallStaticObjectMethod(class_ref, id_newInstance_Ljava_lang_String_Lcom_instabug_library_InstabugAudioRecordingFragment_Callbacks_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
static void n_OnAudioRecorded_Ljava_lang_String_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Instabug.Library.InstabugAudioRecordingFragment.ICallbacks __this = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.InstabugAudioRecordingFragment.ICallbacks> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer); __this.OnAudioRecorded(p0, p1); }