clearWebsiteData method
- @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'SFSafariViewController.DataStore.clearWebsiteData', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/datastore/3981117-clearwebsitedata', available: '16.0')])
Clear associated website data accrued from browsing activity within your app. This includes all local storage, cached resources, and cookies.
Officially Supported Platforms/Implementations:
- iOS SFSafariViewController 16.0+ (Official API - SFSafariViewController.DataStore.clearWebsiteData)
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',
);
}