Package coil.decode

Types

DataSource
Link copied to clipboard
enum DataSource : Enum<DataSource>

Represents the source that an image was loaded from.

Decoder
Link copied to clipboard
interface Decoder

Converts a BufferedSource into a Drawable.

DecodeResult
Link copied to clipboard
data class DecodeResult(drawable: Drawable, isSampled: Boolean)

The result of Decoder.decode.

DecodeUtils
Link copied to clipboard
object DecodeUtils

A collection of useful utility methods for decoding images.

Options
Link copied to clipboard
class Options(context: Context, config: Bitmap.Config, colorSpace: ColorSpace?, scale: Scale, allowInexactSize: Boolean, allowRgb565: Boolean, premultipliedAlpha: Boolean, headers: Headers, parameters: Parameters, memoryCachePolicy: CachePolicy, diskCachePolicy: CachePolicy, networkCachePolicy: CachePolicy)

A set of configuration options for fetching and decoding an image.

Functions

withInterruptibleSource
Link copied to clipboard
inline suspend fun <T> withInterruptibleSource(source: Source, crossinline block: (Source) -> T): T

Wraps source to support thread interruption while inside block.