NetworkFetcher

class NetworkFetcher(    url: String,     options: Options,     networkClient: Lazy<NetworkClient>,     diskCache: Lazy<DiskCache?>,     cacheStrategy: Lazy<CacheStrategy>,     connectivityChecker: ConnectivityChecker) : Fetcher

A Fetcher that fetches and caches images from the network.

Constructors

Link copied to clipboard
constructor(    url: String,     options: Options,     networkClient: Lazy<NetworkClient>,     diskCache: Lazy<DiskCache?>,     cacheStrategy: Lazy<CacheStrategy>,     connectivityChecker: ConnectivityChecker)

Types

Link copied to clipboard
class Factory(    networkClient: () -> NetworkClient,     cacheStrategy: () -> CacheStrategy = { CacheStrategy.DEFAULT },     connectivityChecker: (PlatformContext) -> ConnectivityChecker = ::ConnectivityChecker) : Fetcher.Factory<Uri>

Functions

Link copied to clipboard
open suspend override fun fetch(): FetchResult
Link copied to clipboard
fun getMimeType(url: String, contentType: String?): String?

Parse the response's content-type header.