WebViewStartUpConfig


@WebViewCompat.ExperimentalAsyncStartUp
class WebViewStartUpConfig


Configuration object for startUpWebView.

This is different from ProcessGlobalConfig. This object defines the configuration for a particular call to startUpWebView.

Summary

Public functions

Executor
(Mutable)Set<String!>?

Returns the Set of profiles to be loaded during the UI thread blocking parts of WebView startup.

Boolean

Whether to run only parts of startup that doesn't block the UI thread.

Public functions

getBackgroundExecutor

Added in 1.13.0
fun getBackgroundExecutor(): Executor

getProfilesToLoadDuringStartup

fun getProfilesToLoadDuringStartup(): (Mutable)Set<String!>?

Returns the Set of profiles to be loaded during the UI thread blocking parts of WebView startup.

For more details on the behavior of this setting, see the documentation for setProfilesToLoadDuringStartup.

Returns
(Mutable)Set<String!>?

A Set of profiles to be loaded, or null if this configuration setting is not active.

shouldRunUiThreadStartUpTasks

Added in 1.13.0
fun shouldRunUiThreadStartUpTasks(): Boolean

Whether to run only parts of startup that doesn't block the UI thread.

WebView startup tasks that are required to run on the UI thread are not attempted when startUpWebView is called if set to false.

Defaults to `true`. If not set to `false`, UI thread startup tasks will be run.