public unsafe void OnResponse(global::Com.Mob.Tools.Network.IHttpConnection p0)
        {
            if (id_onResponse_Lcom_mob_tools_network_HttpConnection_ == IntPtr.Zero)
            {
                id_onResponse_Lcom_mob_tools_network_HttpConnection_ = JNIEnv.GetMethodID(class_ref, "onResponse", "(Lcom/mob/tools/network/HttpConnection;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onResponse_Lcom_mob_tools_network_HttpConnection_, __args);
        }
コード例 #2
0
        public virtual unsafe void OnResponse(global::Com.Mob.Tools.Network.IHttpConnection p0)
        {
            const string __id = "onResponse.(Lcom/mob/tools/network/HttpConnection;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
 static void n_OnResponse_Lcom_mob_tools_network_HttpConnection_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mob.Tools.Network.IHttpResponseCallback __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Network.IHttpResponseCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mob.Tools.Network.IHttpConnection       p0     = (global::Com.Mob.Tools.Network.IHttpConnection)global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Network.IHttpConnection> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnResponse(p0);
 }
コード例 #4
0
 static IntPtr n_GetErrorStream(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mob.Tools.Network.IHttpConnection __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Network.IHttpConnection> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(__this.ErrorStream));
 }
コード例 #5
0
 static int n_GetResponseCode(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mob.Tools.Network.IHttpConnection __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Network.IHttpConnection> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ResponseCode);
 }
コード例 #6
0
 static IntPtr n_GetHeaderFields(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mob.Tools.Network.IHttpConnection __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Network.IHttpConnection> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.JavaDictionary <string, global::System.Collections.Generic.IList <string> > .ToLocalJniHandle(__this.HeaderFields));
 }