WebViewStartUpResult


@WebViewCompat.ExperimentalAsyncStartUp
public interface WebViewStartUpResult


Result object associated with onSuccess.

Summary

Public methods

abstract @Nullable List<BlockingStartUpLocation>

Code locations where WebView is started up suboptimally.

abstract @Nullable Long

The maximum time taken by a task among all the tasks associated with WebView startup in the UI thread.

abstract @Nullable Long

The total time WebView startup took on the UI thread.

Public methods

getBlockingStartUpLocations

abstract @Nullable List<BlockingStartUpLocationgetBlockingStartUpLocations()

Code locations where WebView is started up suboptimally.

This is as a debug tool to enable apps to catch code locations where WebView is suboptimally started up even when startUpWebView is used.

The list will be chronologically ordered based on the time of creation of the stacktrace.

The return value will be null if the underlying WebView version doesn't support this method.

getMaxTimePerTaskInUiThreadMillis

abstract @Nullable Long getMaxTimePerTaskInUiThreadMillis()

The maximum time taken by a task among all the tasks associated with WebView startup in the UI thread.

The return value will be null if the underlying WebView version doesn't support this method.

getTotalTimeInUiThreadMillis

abstract @Nullable Long getTotalTimeInUiThreadMillis()

The total time WebView startup took on the UI thread.

The return value will be null if the underlying WebView version doesn't support this method.