SpeculativeLoadingParameters


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


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

Summary

Nested types

A builder class to use to construct the SpeculativeLoadingParameters.

Public methods

getAdditionalHeaders

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

The map of the additional headers built using Builder.

getExpectedNoVarySearchData

public @Nullable NoVarySearchHeader getExpectedNoVarySearchData()
Returns
@Nullable NoVarySearchHeader

The noVarySearch model built using Builder.

isJavaScriptEnabled

public boolean isJavaScriptEnabled()
Returns
boolean

The javascript enabled setting built using Builder.