Android.Webkit.CookieManager.SetAcceptThirdPartyCookies Method
Sets whether the Android.Webkit.WebView should allow third party cookies to be set.

Syntax

[Android.Runtime.Register("setAcceptThirdPartyCookies", "(Landroid/webkit/WebView;Z)V", "GetSetAcceptThirdPartyCookies_Landroid_webkit_WebView_ZHandler")]
public virtual void SetAcceptThirdPartyCookies (WebView webview, bool accept)

Parameters

webview
the Android.Webkit.WebView instance to set the cookie policy on
accept
whether the Android.Webkit.WebView instance should accept third party cookies

Remarks

Sets whether the Android.Webkit.WebView should allow third party cookies to be set. Allowing third party cookies is a per WebView policy and can be set differently on different WebView instances.

Apps that target NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#KITKAT or below default to allowing third party cookies. Apps targeting NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#LOLLIPOP or later default to disallowing third party cookies.

[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