Metadata

abstract class Metadata

A marker class for metadata for an ImageSource.

Heavily prefer using source or file to decode the image's data instead of relying on information provided in the metadata. It's the responsibility of a Fetcher to create a BufferedSource or File that can be easily read irrespective of where the image data is located. A Decoder should be as decoupled as possible from where the image is being fetched from.

This method is provided as a way to pass information to decoders that don't support decoding a BufferedSource and want to avoid creating a temporary file (e.g. ImageDecoder, MediaMetadataRetriever, etc.).

See also

Constructors

Metadata
Link copied to clipboard
fun Metadata()

Inheritors

AssetMetadata
Link copied to clipboard
ContentMetadata
Link copied to clipboard
ResourceMetadata
Link copied to clipboard