ResourceCachePolicy

interface ResourceCachePolicy : Parcelable

Interface representing the cache policy.

Important: This is a Public Preview API. It may be changed or removed at any time.

Types

Link copied to clipboard
object NoCache : ResourceCachePolicy

A policy where no resource caching should be performed.

Link copied to clipboard
data class TimeToLive(val sizeLimit: Long, val maxAge: Duration) : ResourceCachePolicy

A policy that specifies maximum amount of time that fetched resource should be allowed to remain in cache. Caching is also subject to server control if, ex. http response contains cache-control header with directive that forbids caching.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

Link copied to clipboard
Link copied to clipboard