public unsafe MessagingUiInitData(global::Com.Liveperson.Infra.InitLivePersonProperties 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/InitLivePersonProperties;Ljava/lang/String;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/infra/InitLivePersonProperties;Ljava/lang/String;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_infra_InitLivePersonProperties_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_infra_InitLivePersonProperties_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/infra/InitLivePersonProperties;Ljava/lang/String;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_infra_InitLivePersonProperties_Ljava_lang_String_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_infra_InitLivePersonProperties_Ljava_lang_String_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Exemplo n.º 2
0
 public static unsafe void Initialize(global::Android.Content.Context p0, global::Com.Liveperson.Infra.InitLivePersonProperties p1)
 {
     if (id_initialize_Landroid_content_Context_Lcom_liveperson_infra_InitLivePersonProperties_ == IntPtr.Zero)
     {
         id_initialize_Landroid_content_Context_Lcom_liveperson_infra_InitLivePersonProperties_ = JNIEnv.GetStaticMethodID(class_ref, "initialize", "(Landroid/content/Context;Lcom/liveperson/infra/InitLivePersonProperties;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_initialize_Landroid_content_Context_Lcom_liveperson_infra_InitLivePersonProperties_, __args);
     } finally {
     }
 }
 public static unsafe bool IsValid(global::Com.Liveperson.Infra.InitLivePersonProperties p0)
 {
     if (id_isValid_Lcom_liveperson_infra_InitLivePersonProperties_ == IntPtr.Zero)
     {
         id_isValid_Lcom_liveperson_infra_InitLivePersonProperties_ = JNIEnv.GetStaticMethodID(class_ref, "isValid", "(Lcom/liveperson/infra/InitLivePersonProperties;)Z");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_isValid_Lcom_liveperson_infra_InitLivePersonProperties_, __args);
         return(__ret);
     } finally {
     }
 }
 static IntPtr n_GetMonitoringInitParams(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.InitLivePersonProperties __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.InitLivePersonProperties> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.MonitoringInitParams));
 }
 static bool n_IsMonitoringParamsValid(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.InitLivePersonProperties __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.InitLivePersonProperties> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsMonitoringParamsValid);
 }
 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;
 }
 static IntPtr n_GetBrandId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.InitLivePersonProperties __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.InitLivePersonProperties> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.BrandId));
 }