NetworkLoader

class NetworkLoader(httpClient: HttpClient = HttpClient(), requestBuilder: HttpRequestBuilder = HttpRequestBuilder()) : ImageBitmapLoader<Url>

A ImageBitmapLoader that loads ImageBitmaps from a Url.

You must import the Ktor client library to use this loader.

Parameters

httpClient

The HttpClient to use for loading the ImageBitmap.

requestBuilder

The HttpRequestBuilder to use for loading the ImageBitmap.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient = HttpClient(), requestBuilder: HttpRequestBuilder = HttpRequestBuilder())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun load(input: Url): ImageBitmap

Loads an ImageBitmap from a Url.