deleteAllCookies method
Removes all cookies.
The return value indicates whether any cookies were removed.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - CookieManager.removeAllCookies)
- iOS WKWebView 11.0+ (Official API - WKWebsiteDataStore.removeData):
- It will return always
true.
- It will return always
- macOS WKWebView 10.13+ (Official API - WKWebsiteDataStore.removeData):
- It will return always
true.
- It will return always
- Windows WebView2
- Linux WPE WebKit (Official API - webkit_website_data_manager_clear):
- Uses WebsiteDataManager to clear all cookie data.
Use the PlatformCookieManager.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> deleteAllCookies() => platform.deleteAllCookies();