clearContainerData method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'Profile.getCookieManager / getWebStorage', apiUrl: 'https://developer.android.com/reference/androidx/webkit/Profile', available: '110'), IOSPlatform(apiName: 'WKWebsiteDataStore.removeData(ofTypes:modifiedSince:completionHandler:)', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata', available: '17.0'), MacOSPlatform(apiName: 'WKWebsiteDataStore.removeData(ofTypes:modifiedSince:completionHandler:)', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata', available: '14.0'), WindowsPlatform(apiName: 'CoreWebView2Environment userDataFolder', apiUrl: 'https://learn.microsoft.com/microsoft-edge/webview2/concepts/user-data-folder'), LinuxPlatform(apiName: 'WebKitWebsiteDataManager persistent directories', apiUrl: 'https://webkitgtk.org/reference/webkit2gtk/stable/class.WebsiteDataManager.html')])
- String containerId
Clears data in containerId without removing the container.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'Profile.getCookieManager / getWebStorage',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/Profile',
available: '110',
),
IOSPlatform(
apiName:
'WKWebsiteDataStore.removeData(ofTypes:modifiedSince:completionHandler:)',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata',
available: '17.0',
),
MacOSPlatform(
apiName:
'WKWebsiteDataStore.removeData(ofTypes:modifiedSince:completionHandler:)',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532938-removedata',
available: '14.0',
),
WindowsPlatform(
apiName: 'CoreWebView2Environment userDataFolder',
apiUrl:
'https://learn.microsoft.com/microsoft-edge/webview2/concepts/user-data-folder',
),
LinuxPlatform(
apiName: 'WebKitWebsiteDataManager persistent directories',
apiUrl:
'https://webkitgtk.org/reference/webkit2gtk/stable/class.WebsiteDataManager.html',
),
],
)
Future<bool> clearContainerData(String containerId) {
throw UnimplementedError(
'clearContainerData is not implemented on the current platform',
);
}