ByteArrayDataSource.UriResolver


interface ByteArrayDataSource.UriResolver


Functional interface to resolve from Uri to byte[].

Summary

Public functions

ByteArray<Byte>!
resolve(uri: Uri!)

Resolves a Uri to a byte[].

Public functions

resolve

fun resolve(uri: Uri!): ByteArray<Byte>!

Resolves a Uri to a byte[].

Called during open from a loading thread, so can do blocking work.

Returns
ByteArray<Byte>!

The resolved byte array.

Throws
java.io.IOException

if the provided URI is not recognized, or an error occurs during resolution.