ProcessGlobalConfig constructor

ProcessGlobalConfig()

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.

Officially Supported Platforms/Implementations:

Implementation

ProcessGlobalConfig()
    : this.fromPlatformCreationParams(
        const PlatformProcessGlobalConfigCreationParams(),
      );