WebViewSession class
Owns one controller and its selected website-data store.
The controller can be displayed with WebViewWidget or used offscreen where supported. Remove its widget before closing the session. Capabilities distinguish limited incognito handling from native private stores. Requests for an isolatedIncognito store never fall back to shared storage.
Properties
- capabilities → WebViewSessionCapabilities
-
final
- controller → WebViewController
-
no setter
-
Addresses this store. In shared/native-incognito modes, other views may
share the store; isolatedIncognito guarantees separate stores.
latefinal
- dataManager → WebViewDataManager
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
no setter
- mode → WebViewSessionMode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
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
Static Methods
-
create(
{WebViewSessionMode mode = WebViewSessionMode.incognito, void onPermissionRequest(WebViewPermissionRequest request)?}) → Future< WebViewSession?> - Creates one owned WebView with the requested data policy.
-
getCapabilities(
) → Future< WebViewSessionCapabilities> - Queries runtime support. Failures are logged and return no supported modes.