SpeculativeLoadingConfig
@Profile.ExperimentalUrlPrefetch
public class SpeculativeLoadingConfig
Summary
Nested types |
|---|
@Profile.ExperimentalUrlPrefetch |
Public methods |
|
|---|---|
@IntRange(from = 1) int |
The max amount of prefetches that can live in the cache. |
@IntRange(from = 1) int |
The max amount of prerenders that can live in the cache of any WebView associated with this |
@IntRange(from = 1) int |
The "time to live" for a prefetch inside of the prefetch cache. |
Public methods
getMaxPrefetches
public @IntRange(from = 1) intgetMaxPrefetches()
The max amount of prefetches that can live in the cache. WebView will choose the appropriate default value.
getMaxPrerenders
@Profile.ExperimentalUrlPrefetch
public @IntRange(from = 1) intgetMaxPrerenders()
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
public @IntRange(from = 1) intgetPrefetchTtlSeconds()
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.