static IntPtr n_Lookup_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Okhttp3.IDns __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IDns> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = global::Android.Runtime.JavaList <global::Java.Net.InetAddress> .ToLocalJniHandle(__this.Lookup(p0)); return(__ret); }
public unsafe global::Okhttp3.OkHttpClient.Builder Dns(global::Okhttp3.IDns dns) { const string __id = "dns.(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((dns == null) ? IntPtr.Zero : ((global::Java.Lang.Object)dns).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 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); } }