sniffFormat

suspend fun sniffFormat(file: File, hints: FormatHints = FormatHints()): Try<Format, AssetRetriever.RetrieveError>

Sniffs the format of a file content.


suspend fun sniffFormat(url: AbsoluteUrl, hints: FormatHints = FormatHints()): Try<Format, AssetRetriever.RetrieveUrlError>

Sniffs the format of the content available at url.


suspend fun sniffFormat(resource: Resource, hints: FormatHints = FormatHints()): Try<Format, AssetRetriever.RetrieveError>

Sniffs the format of a resource content.


suspend fun sniffFormat(container: Container<Resource>, hints: FormatHints = FormatHints()): Try<Format, AssetRetriever.RetrieveError>

Sniffs the format of a container content.