Example #1
0
        public unsafe InlineMessagesController(global::Android.Content.Context p0, global::Android.Content.Res.Resources p1, global::Android.Views.View p2, global::Com.Liveperson.Infra.UI.View.Uicomponents.IConversationProvider p3, global::System.Collections.Generic.IDictionary <string, global::Java.Lang.Boolean> p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p4 = global::Android.Runtime.JavaDictionary <string, global::Java.Lang.Boolean> .ToLocalJniHandle(p4);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                if (((object)this).GetType() != typeof(InlineMessagesController))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/Context;Landroid/content/res/Resources;Landroid/view/View;Lcom/liveperson/infra/ui/view/uicomponents/IConversationProvider;Ljava/util/HashMap;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/Context;Landroid/content/res/Resources;Landroid/view/View;Lcom/liveperson/infra/ui/view/uicomponents/IConversationProvider;Ljava/util/HashMap;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Landroid/content/res/Resources;Landroid/view/View;Lcom/liveperson/infra/ui/view/uicomponents/IConversationProvider;Ljava/util/HashMap;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_Context_Landroid_content_res_Resources_Landroid_view_View_Lcom_liveperson_infra_ui_view_uicomponents_IConversationProvider_Ljava_util_HashMap_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }
 static IntPtr n_GetBrandId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.UI.View.Uicomponents.IConversationProvider __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Uicomponents.IConversationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.BrandId));
 }