BitmapFactoryDecoder

class BitmapFactoryDecoder(source: ImageSource, options: Options, parallelismLock: Semaphore = Semaphore(Int.MAX_VALUE), exifOrientationStrategy: ExifOrientationStrategy = RESPECT_PERFORMANCE) : Decoder

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

Constructors

Link copied to clipboard
constructor(source: ImageSource, options: Options, parallelismLock: Semaphore = Semaphore(Int.MAX_VALUE), exifOrientationStrategy: ExifOrientationStrategy = RESPECT_PERFORMANCE)

Types

Link copied to clipboard
class Factory(parallelismLock: Semaphore = Semaphore(DEFAULT_MAX_PARALLELISM), exifOrientationStrategy: ExifOrientationStrategy = RESPECT_PERFORMANCE) : Decoder.Factory

Functions

Link copied to clipboard
open suspend override fun decode(): DecodeResult

Decode the SourceFetchResult provided by Factory.create or return 'null' to delegate to the next Factory in the component registry.