Sdílet prostřednictvím


CookieManager.SetCookiePolicy(ICookiePolicy) Method

Definition

To set the cookie policy of this cookie manager.

[Android.Runtime.Register("setCookiePolicy", "(Ljava/net/CookiePolicy;)V", "GetSetCookiePolicy_Ljava_net_CookiePolicy_Handler")]
public virtual void SetCookiePolicy (Java.Net.ICookiePolicy? cookiePolicy);
[<Android.Runtime.Register("setCookiePolicy", "(Ljava/net/CookiePolicy;)V", "GetSetCookiePolicy_Ljava_net_CookiePolicy_Handler")>]
abstract member SetCookiePolicy : Java.Net.ICookiePolicy -> unit
override this.SetCookiePolicy : Java.Net.ICookiePolicy -> unit

Parameters

cookiePolicy
ICookiePolicy

the cookie policy. Can be null, which has no effects on current cookie policy.

Attributes

Remarks

To set the cookie policy of this cookie manager.

A instance of CookieManager will have cookie policy ACCEPT_ORIGINAL_SERVER by default. Users always can call this method to set another cookie policy.

Java documentation for java.net.CookieManager.setCookiePolicy(java.net.CookiePolicy).

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