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

This class is deprecated.

Use PrerenderParameters or PrefetchParameters instead.

Public methods

getAdditionalHeaders

Added in 1.13.0
public @NonNull Map<StringStringgetAdditionalHeaders()

This method should only be called if isFeatureSupported returns true for PROFILE_URL_PREFETCH.

Returns
@NonNull Map<StringString>

The map of the additional headers built using Builder.

getExpectedNoVarySearchData

Added in 1.13.0
public @Nullable NoVarySearchHeader getExpectedNoVarySearchData()
Returns
@Nullable NoVarySearchHeader

The noVarySearch model built using Builder.

getVariationsId

Added in 1.16.0
public @Nullable Integer getVariationsId()
Returns
@Nullable Integer

The variations id built using Builder.

isJavaScriptEnabled

Added in 1.13.0
public boolean isJavaScriptEnabled()
Returns
boolean

The javascript enabled setting built using Builder.