Package-level declarations

Types

Link copied to clipboard
class AssetMetadata(val filePath: String)

Metadata containing the filePath of an Android asset.

Link copied to clipboard
class BitmapFactoryDecoder(source: <Error class: unknown class>, options: <Error class: unknown class>, parallelismLock: Semaphore = Semaphore(Int.MAX_VALUE), exifOrientationStrategy: ExifOrientationStrategy = RESPECT_PERFORMANCE)

The base Decoder that uses BitmapFactory to decode a given ImageSource.

Link copied to clipboard
class BlackholeDecoder(imageFactory: () -> Image) : Decoder

A Decoder that ignores the SourceFetchResult and always returns the Image returned by imageFactory.

Link copied to clipboard
class ByteBufferMetadata(val byteBuffer: <Error class: unknown class>) : ImageSource.Metadata

Metadata containing the underlying ByteBuffer of the ImageSource.

Link copied to clipboard
class ContentMetadata(val uri: <Error class: unknown class>, val assetFileDescriptor: AssetFileDescriptor)

Metadata containing the uri and associated assetFileDescriptor of a content URI.

Link copied to clipboard

Represents the source that an image was loaded from.

Link copied to clipboard
fun interface Decoder
Link copied to clipboard
class DecodeResult(val image: Image, val isSampled: Boolean)

The result of Decoder.decode.

Link copied to clipboard

A collection of useful utility methods for decoding images.

Link copied to clipboard

Specifies the strategy for handling the EXIF orientation flag.

Link copied to clipboard
sealed interface ImageSource : AutoCloseable

Provides access to the image data to be decoded.

Link copied to clipboard
class ResourceMetadata(val packageName: String, @DrawableRes val resId: Int, val density: Int)

Metadata containing the packageName, resId, and density of an Android resource.

Link copied to clipboard
class SkiaImageDecoder(source: ImageSource, options: Options) : Decoder
Link copied to clipboard
@RequiresApi(value = 29)
class StaticImageDecoder(source: ImageDecoder.Source, closeable: AutoCloseable, options: <Error class: unknown class>, parallelismLock: Semaphore)

Functions

Link copied to clipboard
fun ImageSource(source: BufferedSource, fileSystem: FileSystem, metadata: ImageSource.Metadata? = null): ImageSource

Create a new ImageSource backed by a BufferedSource.

fun ImageSource(file: Path, fileSystem: FileSystem, diskCacheKey: String? = null, closeable: AutoCloseable? = null, metadata: ImageSource.Metadata? = null): ImageSource

Create a new ImageSource backed by a Path.

Link copied to clipboard
@RequiresApi(value = 28)
fun <Error class: unknown class>.toImageDecoderSourceOrNull(options: <Error class: unknown class>, animated: Boolean): ImageDecoder.Source?