containerId property
getter/setter pair
Joins the named Android WebView storage container at construction time.
Container data is isolated from the default profile and includes cookies,
DOM storage, IndexedDB, service workers, and HTTP cache. The value cannot
be changed after the WebView has been constructed. Android WebView 110+
with the MULTI_PROFILE feature is required; unsupported versions use the
default profile.
Officially Supported Platforms/Implementations:
- Android WebView 110+ (Official API - androidx.webkit.ProfileStore)
- iOS WKWebView 17.0+ (Official API - WKWebsiteDataStore.dataStoreForIdentifier):
- The identifier must be a valid UUID string on iOS.
- macOS WKWebView 14.0+ (Official API - WKWebsiteDataStore(forIdentifier:)):
- The identifier must be a valid UUID string on macOS.
- Windows WebView2 (Official API - CoreWebView2Environment user data folder):
- The identifier is sanitized and used as a persistent profile name.
- Linux WPE WebKit (Official API - WebKitWebsiteDataManager):
- The identifier is sanitized and used as a persistent profile name.
Implementation
String? containerId;