removeDataModifiedSince method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(available: '9.0', apiName: 'WKWebsiteDataStore.removeData', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata'), LinuxPlatform(apiName: 'webkit_website_data_manager_clear', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebsiteDataManager.clear.html'), MacOSPlatform(apiName: 'WKWebsiteDataStore.removeData', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata')])
Future<void> removeDataModifiedSince({
  1. required Set<WebsiteDataType> dataTypes,
  2. 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:

Parameters - Officially Supported Platforms/Implementations:

  • dataTypes: all platforms
  • date: all platforms

Use the PlatformWebStorageManager.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      available: '9.0',
      apiName: 'WKWebsiteDataStore.removeData',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata',
    ),
    LinuxPlatform(
      apiName: 'webkit_website_data_manager_clear',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebsiteDataManager.clear.html',
    ),
    MacOSPlatform(
      apiName: 'WKWebsiteDataStore.removeData',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata',
    ),
  ],
)
Future<void> removeDataModifiedSince({
  required Set<WebsiteDataType> dataTypes,
  required DateTime date,
}) {
  throw UnimplementedError(
    'removeDataModifiedSince is not implemented on the current platform',
  );
}