public unsafe MessagingUiInitData(global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack p0, string p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p1 = JNIEnv.NewString(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); if (((object)this).GetType() != typeof(MessagingUiInitData)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/infra/callbacks/InitLivePersonCallBack;Ljava/lang/String;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/infra/callbacks/InitLivePersonCallBack;Ljava/lang/String;)V", __args); return; } if (id_ctor_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_Ljava_lang_String_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/infra/callbacks/InitLivePersonCallBack;Ljava/lang/String;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_Ljava_lang_String_, __args); } finally { JNIEnv.DeleteLocalRef(native_p1); } }
static void n_OnInitFailed_Ljava_lang_Exception_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Exception p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Exception> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnInitFailed(p0); }
static void n_OnInitSucceed(IntPtr jnienv, IntPtr native__this) { global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnInitSucceed(); }
public static unsafe void Initialize(global::Android.Content.Context p0, string p1, global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack p2) { if (id_initialize_Landroid_content_Context_Ljava_lang_String_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_ == IntPtr.Zero) { id_initialize_Landroid_content_Context_Ljava_lang_String_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_ = JNIEnv.GetStaticMethodID(class_ref, "initialize", "(Landroid/content/Context;Ljava/lang/String;Lcom/liveperson/infra/callbacks/InitLivePersonCallBack;)V"); } IntPtr native_p1 = JNIEnv.NewString(p1); try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(p2); JNIEnv.CallStaticVoidMethod(class_ref, id_initialize_Landroid_content_Context_Ljava_lang_String_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_, __args); } finally { JNIEnv.DeleteLocalRef(native_p1); } }
static void n_SetInitCallBack_Lcom_liveperson_infra_callbacks_InitLivePersonCallBack_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Infra.InitLivePersonProperties __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.InitLivePersonProperties> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack p0 = (global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack)global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Callbacks.IInitLivePersonCallBack> (native_p0, JniHandleOwnership.DoNotTransfer); __this.InitCallBack = p0; }