SpeculativeLoadingConfig

Added in 1.13.0
Deprecated in 1.17.0

@Profile.ExperimentalUrlPrefetch
class SpeculativeLoadingConfig


Summary

Nested types

This class is deprecated. Deprecated in Java

Public functions

@IntRange(from = 1) Int

This function is deprecated. Deprecated in Java

@IntRange(from = 1) Int

This function is deprecated. Deprecated in Java

@IntRange(from = 1) Int

This function is deprecated. Deprecated in Java

Public functions

getMaxPrefetches

Added in 1.13.0
Deprecated in 1.17.0
fun getMaxPrefetches(): @IntRange(from = 1) Int

The max amount of prefetches that can live in the cache. WebView will choose the appropriate default value.

getMaxPrerenders

Added in 1.14.0
Deprecated in 1.17.0
@Profile.ExperimentalUrlPrefetch
fun getMaxPrerenders(): @IntRange(from = 1) Int

The max amount of prerenders that can live in the cache of any WebView associated with this Profile. WebView will choose the appropriate default value.

getPrefetchTtlSeconds

Added in 1.13.0
Deprecated in 1.17.0
fun getPrefetchTtlSeconds(): @IntRange(from = 1) Int

The "time to live" for a prefetch inside of the prefetch cache. This is representative of the maximum time that a prefetch is considered valid and can be served to a navigation. WebView will choose the appropriate default value.