WebViewStartUpConfig
public final class WebViewStartUpConfig
Configuration object for startUpWebView
This is different from ProcessGlobalConfig. This object defines the configuration for a particular call to startUpWebView
Summary
Nested types |
|---|
public final class WebViewStartUpConfig.Builder |
Public methods |
|
|---|---|
@NonNull Executor |
Returns the |
@Nullable Set<@NonNull String> |
Returns the |
boolean |
Whether to run only parts of startup that doesn't block the UI thread. |
Public methods
getBackgroundExecutor
public @NonNull Executor getBackgroundExecutor()
Returns the Executor that will be used to run background startup tasks.
getProfilesToLoadDuringStartup
public @Nullable Set<@NonNull String> getProfilesToLoadDuringStartup()
Returns the Set of Profile names 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 | |
|---|---|
@Nullable Set<@NonNull String> |
A |
| See also | |
|---|---|
setProfilesToLoadDuringStartup |
shouldRunUiThreadStartUpTasks
public boolean shouldRunUiThreadStartUpTasks()
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.