static void n_OnCompleted_Lcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_exception_ApplozicException_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Applozic.Mobicomkit.Api.Conversation.Message p0 = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Api.Conversation.Message> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Applozic.Mobicomkit.Exception.ApplozicException p1 = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Exception.ApplozicException> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnCompleted(p0, p1); }
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 { } }
static void n_OnDownloadStarted(IntPtr jnienv, IntPtr native__this) { global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnDownloadStarted(); }
static void n_OnProgressUpdate_ILcom_applozic_mobicomkit_exception_ApplozicException_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1) { global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Applozic.Mobicomkit.Exception.ApplozicException p1 = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Exception.ApplozicException> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnProgressUpdate(p0, p1); }
public static unsafe void DownloadMessage(global::Android.Content.Context p0, global::Com.Applozic.Mobicomkit.Api.Conversation.Message p1, global::Com.Applozic.Mobicomkit.Listners.IMediaDownloadProgressHandler p2) { if (id_downloadMessage_Landroid_content_Context_Lcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_listners_MediaDownloadProgressHandler_ == IntPtr.Zero) { id_downloadMessage_Landroid_content_Context_Lcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_listners_MediaDownloadProgressHandler_ = JNIEnv.GetStaticMethodID(class_ref, "downloadMessage", "(Landroid/content/Context;Lcom/applozic/mobicomkit/api/conversation/Message;Lcom/applozic/mobicomkit/listners/MediaDownloadProgressHandler;)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); JNIEnv.CallStaticVoidMethod(class_ref, id_downloadMessage_Landroid_content_Context_Lcom_applozic_mobicomkit_api_conversation_Message_Lcom_applozic_mobicomkit_listners_MediaDownloadProgressHandler_, __args); } finally { } }