Esempio n. 1
0
        public unsafe UserLogoutTask(global::Com.Applozic.Mobicomkit.Api.Account.User.UserLogoutTask.ITaskListener p0, global::Android.Content.Context p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(UserLogoutTask))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/applozic/mobicomkit/api/account/user/UserLogoutTask$TaskListener;Landroid/content/Context;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/applozic/mobicomkit/api/account/user/UserLogoutTask$TaskListener;Landroid/content/Context;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_applozic_mobicomkit_api_account_user_UserLogoutTask_TaskListener_Landroid_content_Context_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_applozic_mobicomkit_api_account_user_UserLogoutTask_TaskListener_Landroid_content_Context_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/applozic/mobicomkit/api/account/user/UserLogoutTask$TaskListener;Landroid/content/Context;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_applozic_mobicomkit_api_account_user_UserLogoutTask_TaskListener_Landroid_content_Context_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_applozic_mobicomkit_api_account_user_UserLogoutTask_TaskListener_Landroid_content_Context_, __args);
            } finally {
            }
        }
Esempio n. 2
0
 static void n_OnFailure_Ljava_lang_Exception_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Api.Account.User.UserLogoutTask.ITaskListener __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Account.User.UserLogoutTask.ITaskListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Exception p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Exception> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnFailure(p0);
 }
Esempio n. 3
0
 static void n_OnSuccess_Landroid_content_Context_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Api.Account.User.UserLogoutTask.ITaskListener __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Account.User.UserLogoutTask.ITaskListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnSuccess(p0);
 }