PlatformContainerController class abstract

Manages persistent WebView storage containers.

A container is a named profile containing cookies, DOM storage, IndexedDB, service workers, cache, and other WebView data. A WebView joins a container through InAppWebViewSettings.containerId when it is constructed.

Inheritance
Annotations
  • @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'androidx.webkit.ProfileStore', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ProfileStore', available: '110'), IOSPlatform(apiName: 'WKWebsiteDataStore', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore', available: '17.0'), MacOSPlatform(apiName: 'WKWebsiteDataStore', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore', 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')])

Constructors

PlatformContainerController(PlatformContainerControllerCreationParams params)
Creates a new controller.
factory
PlatformContainerController.implementation(PlatformContainerControllerCreationParams params)
Constructor for platform implementations.
PlatformContainerController.static()
Creates a controller for static methods.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
params PlatformContainerControllerCreationParams
The creation parameters used by this controller.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearContainerData(String containerId) Future<bool>
Clears data in containerId without removing the container.
deleteContainer(String containerId) Future<bool>
Deletes containerId when it is not in use.
getAllContainerNames() Future<List<String>>
Returns all named persistent containers.
hasContainer(String containerId) Future<bool>
Returns whether containerId exists.
isClassSupported({TargetPlatform? platform}) bool
Checks whether this controller is available on platform.
isMethodSupported(PlatformContainerControllerMethod method, {TargetPlatform? platform}) bool
Checks whether method is available on platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited