Esempio n. 1
0
 public unsafe bool InitMonitoring(global::Com.Liveperson.Sdk.MonitoringInternalInitParams p0)
 {
     if (id_initMonitoring_Lcom_liveperson_sdk_MonitoringInternalInitParams_ == IntPtr.Zero)
     {
         id_initMonitoring_Lcom_liveperson_sdk_MonitoringInternalInitParams_ = JNIEnv.GetMethodID(class_ref, "initMonitoring", "(Lcom/liveperson/sdk/MonitoringInternalInitParams;)Z");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_initMonitoring_Lcom_liveperson_sdk_MonitoringInternalInitParams_, __args);
         return(__ret);
     } finally {
     }
 }
        public unsafe global::Com.Liveperson.Sdk.MonitoringInternalInitParams Copy(global::Android.Content.Context p0, string p1, string p2)
        {
            if (id_copy_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_copy_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "copy", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/liveperson/sdk/MonitoringInternalInitParams;");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                global::Com.Liveperson.Sdk.MonitoringInternalInitParams __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Sdk.MonitoringInternalInitParams> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_copy_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }