removeDataModifiedSince method
- required Set<
WebsiteDataType> dataTypes, - required DateTime date,
Removes all website data of the given types that has been modified since the given date.
dataTypes represents the website data types that should be removed.
date represents a date. All website data modified after this date will be removed.
Officially Supported Platforms/Implementations:
- iOS WKWebView 9.0+ (Official API - WKWebsiteDataStore.removeData)
- Linux WPE WebKit (Official API - webkit_website_data_manager_clear)
- macOS WKWebView (Official API - WKWebsiteDataStore.removeData)
Parameters - Officially Supported Platforms/Implementations:
dataTypes: all platformsdate: all platforms
Use the PlatformWebStorageManager.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> removeDataModifiedSince({
required Set<WebsiteDataType> dataTypes,
required DateTime date,
}) => platform.removeDataModifiedSince(dataTypes: dataTypes, date: date);