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 Path 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).

Inheritors

Constructors

Link copied to clipboard
constructor()