dataDirectory

abstract var dataDirectory: String?(source)

Set a custom path for the webview's data directory (localStorage, cache, etc.) relative to `appDataDir()`/${label}. For security reasons, paths outside of that location can only be configured on the Rust side.

Platform-specific:

  • Windows: WebViews with different values for settings like additionalBrowserArgs, browserExtensionsEnabled or scrollBarStyle must have different data directories.

  • macOS / iOS: Unsupported, use dataStoreIdentifier instead.

  • Android: Unsupported.

Since

2.9.0