public unsafe UserLogoutTask(global::Com.Applozic.Mobicomkit.Listners.IAlLogoutHandler 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/listners/AlLogoutHandler;Landroid/content/Context;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/applozic/mobicomkit/listners/AlLogoutHandler;Landroid/content/Context;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_Landroid_content_Context_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_Landroid_content_Context_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/applozic/mobicomkit/listners/AlLogoutHandler;Landroid/content/Context;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_Landroid_content_Context_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_Landroid_content_Context_, __args);
            } finally {
            }
        }
 public static unsafe void LogoutUser(global::Android.Content.Context p0, global::Com.Applozic.Mobicomkit.Listners.IAlLogoutHandler p1)
 {
     if (id_logoutUser_Landroid_content_Context_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_ == IntPtr.Zero)
     {
         id_logoutUser_Landroid_content_Context_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_ = JNIEnv.GetStaticMethodID(class_ref, "logoutUser", "(Landroid/content/Context;Lcom/applozic/mobicomkit/listners/AlLogoutHandler;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_logoutUser_Landroid_content_Context_Lcom_applozic_mobicomkit_listners_AlLogoutHandler_, __args);
     } finally {
     }
 }
Exemplo n.º 3
0
 static void n_OnFailure_Ljava_lang_Exception_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Listners.IAlLogoutHandler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Listners.IAlLogoutHandler> (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);
 }
Exemplo n.º 4
0
 static void n_OnSuccess_Landroid_content_Context_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Listners.IAlLogoutHandler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Listners.IAlLogoutHandler> (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);
 }