Beispiel #1
0
 public static unsafe void RemoveDownload(global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask p0)
 {
     if (id_removeDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_ == IntPtr.Zero)
     {
         id_removeDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_ = JNIEnv.GetStaticMethodID(class_ref, "removeDownload", "(Lcom/applozic/mobicomkit/api/attachment/AttachmentTask;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallStaticVoidMethod(class_ref, id_removeDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_, __args);
     } finally {
     }
 }
 public static unsafe global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask StartDownload(global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentViewProperties p0, bool p1)
 {
     if (id_startDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentViewProperties_Z == IntPtr.Zero)
     {
         id_startDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentViewProperties_Z = JNIEnv.GetStaticMethodID(class_ref, "startDownload", "(Lcom/applozic/mobicomkit/api/attachment/AttachmentViewProperties;Z)Lcom/applozic/mobicomkit/api/attachment/AttachmentTask;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __ret = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (JNIEnv.CallStaticObjectMethod(class_ref, id_startDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentViewProperties_Z, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask GetBGThreadForAttachment(string p0)
        {
            if (id_getBGThreadForAttachment_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getBGThreadForAttachment_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "getBGThreadForAttachment", "(Ljava/lang/String;)Lcom/applozic/mobicomkit/api/attachment/AttachmentTask;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __ret = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (JNIEnv.CallStaticObjectMethod(class_ref, id_getBGThreadForAttachment_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
 public static unsafe global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask StartDownload(global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentView p0, bool p1, global::Com.Applozic.Mobicomkit.Api.Conversation.Message p2, global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler p3, global::Android.Content.Context p4)
 {
     if (id_startDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentView_ZLcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_listners_MediaDownloadProgressHandler_Landroid_content_Context_ == IntPtr.Zero)
     {
         id_startDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentView_ZLcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_listners_MediaDownloadProgressHandler_Landroid_content_Context_ = JNIEnv.GetStaticMethodID(class_ref, "startDownload", "(Lcom/applozic/mobicomkit/api/attachment/AttachmentView;ZLcom/applozic/mobicomkit/api/conversation/Message;Lcom/applozic/mobicomkit/listners/MediaDownloadProgressHandler;Landroid/content/Context;)Lcom/applozic/mobicomkit/api/attachment/AttachmentTask;");
     }
     try {
         JValue *__args = stackalloc JValue [5];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         __args [4] = new JValue(p4);
         global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __ret = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (JNIEnv.CallStaticObjectMethod(class_ref, id_startDownload_Lcom_applozic_mobicomkit_api_attachment_AttachmentView_ZLcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_listners_MediaDownloadProgressHandler_Landroid_content_Context_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public virtual unsafe void HandleState(global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask p0, int p1)
        {
            if (id_handleState_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_I == IntPtr.Zero)
            {
                id_handleState_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_I = JNIEnv.GetMethodID(class_ref, "handleState", "(Lcom/applozic/mobicomkit/api/attachment/AttachmentTask;I)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_handleState_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_I, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handleState", "(Lcom/applozic/mobicomkit/api/attachment/AttachmentTask;I)V"), __args);
                }
            } finally {
            }
        }
 static void n_HandleState_Lcom_applozic_mobicomkit_api_attachment_AttachmentTask_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentManager __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask    p0     = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.HandleState(p0, p1);
 }
 static void n_SetImageDecodeThread_Ljava_lang_Thread_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Thread p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Thread> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetImageDecodeThread(p0);
 }
 static IntPtr n_GetContext(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Context));
 }
 static void n_SetImage_Landroid_graphics_Bitmap_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Bitmap p0 = global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetImage(p0);
 }
 static void n_SetAttachementView_Lcom_applozic_mobicomkit_api_attachment_AttachmentView_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentView p0     = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentView> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetAttachementView(p0);
 }
 static void n_HandleDownloadState_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.HandleDownloadState(p0);
 }
 static int n_GetTargetWidth(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.TargetWidth);
 }
 static IntPtr n_GetImageURL(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Attachment.AttachmentTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ImageURL));
 }