static void n_OnDataReceived_Lanetwork_channel_NetworkEvent_ProgressEvent_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Anetwork.Channel.NetworkCallBack.IProgressListener __this = global::Java.Lang.Object.GetObject <global::Anetwork.Channel.NetworkCallBack.IProgressListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Anetwork.Channel.NetworkEvent.IProgressEvent p0 = (global::Anetwork.Channel.NetworkEvent.IProgressEvent)global::Java.Lang.Object.GetObject <global::Anetwork.Channel.NetworkEvent.IProgressEvent> (native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Object p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnDataReceived(p0, p1); }
public unsafe void OnDataReceived(global::Anetwork.Channel.NetworkEvent.IProgressEvent p0, global::Java.Lang.Object p1) { if (id_onDataReceived_Lanetwork_channel_NetworkEvent_ProgressEvent_Ljava_lang_Object_ == IntPtr.Zero) { id_onDataReceived_Lanetwork_channel_NetworkEvent_ProgressEvent_Ljava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "onDataReceived", "(Lanetwork/channel/NetworkEvent$ProgressEvent;Ljava/lang/Object;)V"); } JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onDataReceived_Lanetwork_channel_NetworkEvent_ProgressEvent_Ljava_lang_Object_, __args); }
static IntPtr n_GetBytedata(IntPtr jnienv, IntPtr native__this) { global::Anetwork.Channel.NetworkEvent.IProgressEvent __this = global::Java.Lang.Object.GetObject <global::Anetwork.Channel.NetworkEvent.IProgressEvent> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.NewArray(__this.GetBytedata())); }
static int n_GetTotal(IntPtr jnienv, IntPtr native__this) { global::Anetwork.Channel.NetworkEvent.IProgressEvent __this = global::Java.Lang.Object.GetObject <global::Anetwork.Channel.NetworkEvent.IProgressEvent> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.Total); }