setAcceptThirdPartyCookies method

Future<void> setAcceptThirdPartyCookies(
  1. AndroidWebViewController controller,
  2. bool accept
)

Sets whether the WebView should allow third party cookies to be set.

Defaults to false.

Implementation

Future<void> setAcceptThirdPartyCookies(
  AndroidWebViewController controller,
  bool accept,
) {
  final WebView webView = PigeonInstanceManager.instance
      .getInstanceWithWeakReference(controller.webViewIdentifier)!;
  return _cookieManager.setAcceptThirdPartyCookies(webView, accept);
}