static void n_OnError_Lcom_liveperson_monitoring_sdk_callbacks_MonitoringErrorType_Ljava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Liveperson.Monitoring.Sdk.Callbacks.IMonitoringCallback __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Monitoring.Sdk.Callbacks.IMonitoringCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Monitoring.Sdk.Callbacks.MonitoringErrorType p0     = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Monitoring.Sdk.Callbacks.MonitoringErrorType> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnError(p0, p1);
 }
Пример #2
0
        public unsafe CSDSRequest(string p0, string p1, global::Com.Liveperson.Monitoring.Sdk.Callbacks.IMonitoringCallback p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                if (((object)this).GetType() != typeof(CSDSRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/monitoring/sdk/callbacks/IMonitoringCallback;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/monitoring/sdk/callbacks/IMonitoringCallback;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_monitoring_sdk_callbacks_IMonitoringCallback_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_monitoring_sdk_callbacks_IMonitoringCallback_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/monitoring/sdk/callbacks/IMonitoringCallback;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_monitoring_sdk_callbacks_IMonitoringCallback_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_monitoring_sdk_callbacks_IMonitoringCallback_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
 static void n_OnSuccess_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Monitoring.Sdk.Callbacks.IMonitoringCallback __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Monitoring.Sdk.Callbacks.IMonitoringCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnSuccess(p0);
 }