PlatformProcessGlobalConfig class abstract

Process Global Configuration for WebView. WebView has some process-global configuration parameters that cannot be changed once WebView has been loaded. This class allows apps to set these parameters.

If it is used, the configuration should be set and apply should be called prior to loading WebView into the calling process. Most of the methods in android.webkit and androidx.webkit packages load WebView, so the configuration should be applied before calling any of these methods.

The following code configures the data directory suffix that WebView uses and then applies the configuration. WebView uses this configuration when it is loaded.

apply can only be called once.

Only a single thread should access this class at a given time.

The configuration should be set up as early as possible during application startup, to ensure that it happens before any other thread can call a method that loads WebView.

Inheritance
Annotations
  • @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ProcessGlobalConfig', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ProcessGlobalConfig')])

Constructors

PlatformProcessGlobalConfig(PlatformProcessGlobalConfigCreationParams params)
Creates a new PlatformProcessGlobalConfig
factory
PlatformProcessGlobalConfig.implementation(PlatformProcessGlobalConfigCreationParams params)
Used by the platform implementation to create a new PlatformProcessGlobalConfig.
PlatformProcessGlobalConfig.static()
Creates a new PlatformProcessGlobalConfig to access static methods.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
params PlatformProcessGlobalConfigCreationParams
The parameters used to initialize the PlatformProcessGlobalConfig.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply({required ProcessGlobalConfigSettings settings}) Future<void>
Applies the configuration to be used by WebView on loading. This method can only be called once.
isClassSupported({TargetPlatform? platform}) bool
Check if the current class is supported by the defaultTargetPlatform or a specific platform.
isMethodSupported(PlatformProcessGlobalConfigMethod method, {TargetPlatform? platform}) bool
Check if the given method is supported by the defaultTargetPlatform or a specific platform.
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