clearWebsiteData method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'SFSafariViewController.DataStore.clearWebsiteData', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/datastore/3981117-clearwebsitedata', available: '16.0')])
Future<void> clearWebsiteData()

Clear associated website data accrued from browsing activity within your app. This includes all local storage, cached resources, and cookies.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      apiName: 'SFSafariViewController.DataStore.clearWebsiteData',
      apiUrl:
          'https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/datastore/3981117-clearwebsitedata',
      available: '16.0',
    ),
  ],
)
Future<void> clearWebsiteData() {
  throw UnimplementedError(
    'clearWebsiteData is not implemented on the current platform',
  );
}