Android.Webkit.CookieManager.SetAcceptCookie Method
Sets whether the application's Android.Webkit.WebView instances should send and accept cookies.

Syntax

[Android.Runtime.Register("setAcceptCookie", "(Z)V", "GetSetAcceptCookie_ZHandler")]
public virtual void SetAcceptCookie (bool accept)

Parameters

accept
whether Android.Webkit.WebView instances should send and accept cookies

Remarks

Sets whether the application's Android.Webkit.WebView instances should send and accept cookies. By default this is set to true and the WebView accepts cookies.

When this is true CookieManager.SetAcceptThirdPartyCookies(WebView, System.Boolean) and CookieManager.SetAcceptFileSchemeCookies(bool) can be used to control the policy for those specific types of cookie.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1