Share via


Proxy.GetHost(Context) Method

Definition

Caution

deprecated

Return the proxy host set by the user.

[Android.Runtime.Register("getHost", "(Landroid/content/Context;)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetHost (Android.Content.Context? ctx);
[<Android.Runtime.Register("getHost", "(Landroid/content/Context;)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetHost : Android.Content.Context -> string

Parameters

ctx
Context

A Context used to get the settings for the proxy host.

Returns

String containing the host name. If the user did not set a host name it returns the default host. A null value means that no host is to be used.

Attributes

Remarks

Return the proxy host set by the user.

This member is deprecated. Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list.

Java documentation for android.net.Proxy.getHost(android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to