metadataToExtract
Extension for MetadataExtractorRegistry.metadataToExtract providing a metadataToExtract<Foo>(...)
variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.
Author
Sebastien Deleuze
Since
5.2
Parameters
the mime type of metadata entries to extract
assign a name for the decoded value; if not provided, then the mime type is used as the key
the target value type to decode to
Extension for MetadataExtractorRegistry.metadataToExtract providing a metadataToExtract<Foo>(...)
variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.
Author
Sebastien Deleuze
Since
5.2
Parameters
the mime type of metadata entries to extract
custom logic to add the decoded value to the output map
the target value type to decode to