SingletonImageLoader

A class that holds the singleton ImageLoader instance.

Types

Link copied to clipboard
fun interface Factory

A factory that creates the new singleton ImageLoader.

Functions

Link copied to clipboard
fun get(context: PlatformContext): ImageLoader

Get the singleton ImageLoader.

Link copied to clipboard
@DelicateCoilApi
fun reset()

Clear the ImageLoader or Factory held by this class.

Link copied to clipboard
fun set(imageLoader: ImageLoader)
Link copied to clipboard

Set the Factory that will be used to lazily create the singleton ImageLoader.

Link copied to clipboard
@DelicateCoilApi
fun setUnsafe(imageLoader: ImageLoader)

Set the singleton ImageLoader and overwrite any previously set value.

@DelicateCoilApi
fun setUnsafe(factory: SingletonImageLoader.Factory)

Set the Factory that will be used to lazily create the singleton ImageLoader and overwrite any previously set value.