public unsafe OkHttpURLConnection(global::Java.Net.URL url, global::Okhttp3.OkHttpClient client, global::Okhttp3.Internal.IURLFilter urlFilter)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/net/URL;Lokhttp3/OkHttpClient;Lokhttp3/internal/URLFilter;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((url == null) ? IntPtr.Zero : ((global::Java.Lang.Object)url).Handle);
                __args [1] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [2] = new JniArgumentValue((urlFilter == null) ? IntPtr.Zero : ((global::Java.Lang.Object)urlFilter).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
コード例 #2
0
 static void n_CheckURLPermitted_Ljava_net_URL_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Okhttp3.Internal.IURLFilter __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.IURLFilter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Net.URL p0 = global::Java.Lang.Object.GetObject <global::Java.Net.URL> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.CheckURLPermitted(p0);
 }