PlatformWebViewEnvironment class abstract
Controls a WebView Environment used by WebView instances. Use dispose when not needed anymore to release references.
Officially Supported Platforms/Implementations:
- Windows
- Inheritance
-
- Object
- PlatformInterface
- PlatformWebViewEnvironment
- Implemented types
Constructors
- PlatformWebViewEnvironment(PlatformWebViewEnvironmentCreationParams params)
-
Creates a new PlatformInAppWebViewController
factory
- PlatformWebViewEnvironment.implementation(PlatformWebViewEnvironmentCreationParams params)
- Used by the platform implementation to create a new PlatformWebViewEnvironment.
- PlatformWebViewEnvironment.static()
-
Creates a new PlatformWebViewEnvironment to access static methods.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
WebView Environment ID.
no setter
- params → PlatformWebViewEnvironmentCreationParams
-
The parameters used to initialize the PlatformWebViewEnvironment.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → WebViewEnvironmentSettings?
-
WebView Environment settings.
no setter
Methods
-
compareBrowserVersions(
{required String version1, required String version2}) → Future< int?> - This method is for anyone want to compare version correctly to determine which version is newer, older or same.
-
create(
{WebViewEnvironmentSettings? settings}) → Future< PlatformWebViewEnvironment> -
Creates the PlatformWebViewEnvironment using
settings
. -
dispose(
) → Future< void> -
Disposes the WebView Environment reference.
override
-
getAvailableVersion(
{String? browserExecutableFolder}) → Future< String?> - Get the browser version info including channel name if it is not the WebView2 Runtime.
-
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 Properties
- debugLoggingSettings ↔ DebugLoggingSettings
-
Debug settings used by PlatformWebViewEnvironment.
getter/setter pair