ContainerController class
Manages persistent WebView storage containers.
A WebView joins a container through InAppWebViewSettings.containerId at construction time. Container data is kept separate from the default WebView profile.
Constructors
- ContainerController()
- Creates a controller for the current platform.
- ContainerController.fromPlatform(PlatformContainerController platform)
- Creates a controller from a platform implementation.
- ContainerController.fromPlatformCreationParams(PlatformContainerControllerCreationParams params)
- Creates a controller from platform-specific creation parameters.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- platform → PlatformContainerController
-
The platform implementation 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
containerIdwithout removing the container. -
deleteContainer(
String containerId) → Future< bool> -
Deletes
containerIdwhen it is not in use. -
getAllContainerNames(
) → Future< List< String> > - Returns all named persistent containers.
-
hasContainer(
String containerId) → Future< bool> -
Returns whether
containerIdexists. -
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
-
instance(
) → ContainerController - Gets the shared controller instance.
-
isClassSupported(
{TargetPlatform? platform}) → bool -
Checks whether this API is available on
platform. -
isMethodSupported(
PlatformContainerControllerMethod method, {TargetPlatform? platform}) → bool -
Checks whether
methodis available onplatform.