public unsafe global::Okhttp3.OkHttpClient.Builder Proxy(global::Java.Net.Proxy proxy) { const string __id = "proxy.(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((proxy == null) ? IntPtr.Zero : ((global::Java.Lang.Object)proxy).Handle); var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Okhttp3.OkHttpClient.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
public unsafe Route(global::Okhttp3.Address address, global::Java.Net.Proxy proxy, global::Java.Net.InetSocketAddress inetSocketAddress) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lokhttp3/Address;Ljava/net/Proxy;Ljava/net/InetSocketAddress;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((address == null) ? IntPtr.Zero : ((global::Java.Lang.Object)address).Handle); __args [1] = new JniArgumentValue((proxy == null) ? IntPtr.Zero : ((global::Java.Lang.Object)proxy).Handle); __args [2] = new JniArgumentValue((inetSocketAddress == null) ? IntPtr.Zero : ((global::Java.Lang.Object)inetSocketAddress).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public unsafe Address(string uriHost, int uriPort, global::Okhttp3.IDns dns, global::Javax.Net.SocketFactory socketFactory, global::Javax.Net.Ssl.SSLSocketFactory sslSocketFactory, global::Javax.Net.Ssl.IHostnameVerifier hostnameVerifier, global::Okhttp3.CertificatePinner certificatePinner, global::Okhttp3.IAuthenticator proxyAuthenticator, global::Java.Net.Proxy proxy, global::System.Collections.Generic.IList <global::Okhttp3.Protocol> protocols, global::System.Collections.Generic.IList <global::Okhttp3.ConnectionSpec> connectionSpecs, global::Java.Net.ProxySelector proxySelector) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Ljava/lang/String;ILokhttp3/Dns;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lokhttp3/CertificatePinner;Lokhttp3/Authenticator;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_uriHost = JNIEnv.NewString(uriHost); IntPtr native_protocols = global::Android.Runtime.JavaList <global::Okhttp3.Protocol> .ToLocalJniHandle(protocols); IntPtr native_connectionSpecs = global::Android.Runtime.JavaList <global::Okhttp3.ConnectionSpec> .ToLocalJniHandle(connectionSpecs); try { JniArgumentValue *__args = stackalloc JniArgumentValue [12]; __args [0] = new JniArgumentValue(native_uriHost); __args [1] = new JniArgumentValue(uriPort); __args [2] = new JniArgumentValue((dns == null) ? IntPtr.Zero : ((global::Java.Lang.Object)dns).Handle); __args [3] = new JniArgumentValue((socketFactory == null) ? IntPtr.Zero : ((global::Java.Lang.Object)socketFactory).Handle); __args [4] = new JniArgumentValue((sslSocketFactory == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sslSocketFactory).Handle); __args [5] = new JniArgumentValue((hostnameVerifier == null) ? IntPtr.Zero : ((global::Java.Lang.Object)hostnameVerifier).Handle); __args [6] = new JniArgumentValue((certificatePinner == null) ? IntPtr.Zero : ((global::Java.Lang.Object)certificatePinner).Handle); __args [7] = new JniArgumentValue((proxyAuthenticator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)proxyAuthenticator).Handle); __args [8] = new JniArgumentValue((proxy == null) ? IntPtr.Zero : ((global::Java.Lang.Object)proxy).Handle); __args [9] = new JniArgumentValue(native_protocols); __args [10] = new JniArgumentValue(native_connectionSpecs); __args [11] = new JniArgumentValue((proxySelector == null) ? IntPtr.Zero : ((global::Java.Lang.Object)proxySelector).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { JNIEnv.DeleteLocalRef(native_uriHost); JNIEnv.DeleteLocalRef(native_protocols); JNIEnv.DeleteLocalRef(native_connectionSpecs); } }