PrefetchParameters


@RequiresFeature(name = WebViewFeature.PROFILE_URL_PREFETCH, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
@Profile.ExperimentalUrlPrefetch
public final class PrefetchParameters


Parameters for customizing the prefetch. Use the Builder to construct.

Summary

Nested types

public final class PrefetchParameters.Builder

A builder class to use to construct the PrefetchParameters.

Public methods

getAdditionalHeaders

public @NonNull Map<StringStringgetAdditionalHeaders()
Returns
@NonNull Map<StringString>

The map of the additional headers built using Builder.

getExpectedNoVarySearchData

public @Nullable NoVarySearchData getExpectedNoVarySearchData()
Returns
@Nullable NoVarySearchData

The noVarySearch model built using Builder.

isJavaScriptEnabled

public boolean isJavaScriptEnabled()
Returns
boolean

The javascript enabled setting built using Builder.