Udostępnij za pośrednictwem


DevicePolicyManager.SetRecommendedGlobalProxy Method

Definition

Set a network-independent global HTTP proxy.

[Android.Runtime.Register("setRecommendedGlobalProxy", "(Landroid/content/ComponentName;Landroid/net/ProxyInfo;)V", "GetSetRecommendedGlobalProxy_Landroid_content_ComponentName_Landroid_net_ProxyInfo_Handler")]
public virtual void SetRecommendedGlobalProxy (Android.Content.ComponentName admin, Android.Net.ProxyInfo? proxyInfo);
[<Android.Runtime.Register("setRecommendedGlobalProxy", "(Landroid/content/ComponentName;Landroid/net/ProxyInfo;)V", "GetSetRecommendedGlobalProxy_Landroid_content_ComponentName_Landroid_net_ProxyInfo_Handler")>]
abstract member SetRecommendedGlobalProxy : Android.Content.ComponentName * Android.Net.ProxyInfo -> unit
override this.SetRecommendedGlobalProxy : Android.Content.ComponentName * Android.Net.ProxyInfo -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

proxyInfo
ProxyInfo

The a ProxyInfo object defining the new global HTTP proxy. A null value will clear the global HTTP proxy.

Attributes

Remarks

Java documentation for android.app.admin.DevicePolicyManager.setRecommendedGlobalProxy(android.content.ComponentName, .*ProxyInfo).

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

See also