コード例 #1
0
        static void n_NotifyError_Lcom_liveperson_messaging_TaskType_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Liveperson.Messaging.Controller.Connection.IConnectionListener __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Controller.Connection.IConnectionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Messaging.TaskType p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.TaskType> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.NotifyError(p0, p1);
        }
コード例 #2
0
 static void n_NotifyConnected(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Messaging.Controller.Connection.IConnectionListener __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Controller.Connection.IConnectionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.NotifyConnected();
 }
コード例 #3
0
        public unsafe ConnectionStateMachineOld(global::Com.Liveperson.Messaging.Messaging p0, global::Com.Liveperson.Messaging.Controller.Connection.IInternetInformationProvider p1, string p2, global::Com.Liveperson.Messaging.Controller.Connection.IConnectionListener p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(ConnectionStateMachineOld))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/Messaging;Lcom/liveperson/messaging/controller/connection/InternetInformationProvider;Ljava/lang/String;Lcom/liveperson/messaging/controller/connection/IConnectionListener;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/Messaging;Lcom/liveperson/messaging/controller/connection/InternetInformationProvider;Ljava/lang/String;Lcom/liveperson/messaging/controller/connection/IConnectionListener;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_Messaging_Lcom_liveperson_messaging_controller_connection_InternetInformationProvider_Ljava_lang_String_Lcom_liveperson_messaging_controller_connection_IConnectionListener_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_Messaging_Lcom_liveperson_messaging_controller_connection_InternetInformationProvider_Ljava_lang_String_Lcom_liveperson_messaging_controller_connection_IConnectionListener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/Messaging;Lcom/liveperson/messaging/controller/connection/InternetInformationProvider;Ljava/lang/String;Lcom/liveperson/messaging/controller/connection/IConnectionListener;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Lcom_liveperson_messaging_controller_connection_InternetInformationProvider_Ljava_lang_String_Lcom_liveperson_messaging_controller_connection_IConnectionListener_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Lcom_liveperson_messaging_controller_connection_InternetInformationProvider_Ljava_lang_String_Lcom_liveperson_messaging_controller_connection_IConnectionListener_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }