fetchDataRecords method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(available: '9.0', apiName: 'WKWebsiteDataStore.fetchDataRecords', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532932-fetchdatarecords'), LinuxPlatform(apiName: 'webkit_website_data_manager_fetch', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebsiteDataManager.fetch.html'), MacOSPlatform(apiName: 'WKWebsiteDataStore.fetchDataRecords', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532932-fetchdatarecords')])
Future<List<WebsiteDataRecord>> fetchDataRecords({
  1. required Set<WebsiteDataType> dataTypes,
})

Fetches data records containing the given website data types.

dataTypes represents the website data types to fetch records for.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • dataTypes: 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.fetchDataRecords',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532932-fetchdatarecords',
    ),
    LinuxPlatform(
      apiName: 'webkit_website_data_manager_fetch',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebsiteDataManager.fetch.html',
    ),
    MacOSPlatform(
      apiName: 'WKWebsiteDataStore.fetchDataRecords',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532932-fetchdatarecords',
    ),
  ],
)
Future<List<WebsiteDataRecord>> fetchDataRecords({
  required Set<WebsiteDataType> dataTypes,
}) {
  throw UnimplementedError(
    'fetchDataRecords is not implemented on the current platform',
  );
}