SpeculativeLoadingParameters


@RequiresFeature(name = WebViewFeature.PROFILE_URL_PREFETCH, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
@Profile.ExperimentalUrlPrefetch
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 functions

getAdditionalHeaders

fun getAdditionalHeaders(): (Mutable)Map<String!, String!>
Returns
(Mutable)Map<String!, String!>

The map of the additional headers built using Builder.

getExpectedNoVarySearchData

fun getExpectedNoVarySearchData(): NoVarySearchHeader?
Returns
NoVarySearchHeader?

The noVarySearch model built using Builder.

isJavaScriptEnabled

fun isJavaScriptEnabled(): Boolean
Returns
Boolean

The javascript enabled setting built using Builder.