apply method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ProcessGlobalConfig.apply', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ProcessGlobalConfig#apply(androidx.webkit.ProcessGlobalConfig)')])
- required ProcessGlobalConfigSettings settings,
Applies the configuration to be used by WebView on loading.
This method can only be called once.
Calling this method will not cause WebView to be loaded and will not block the calling thread.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ProcessGlobalConfig.apply)
Parameters - Officially Supported Platforms/Implementations:
settings: all platforms
Use the PlatformProcessGlobalConfig.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'ProcessGlobalConfig.apply',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/ProcessGlobalConfig#apply(androidx.webkit.ProcessGlobalConfig)',
),
],
)
Future<void> apply({required ProcessGlobalConfigSettings settings}) {
throw UnimplementedError(
'apply is not implemented on the current platform',
);
}