fromUri

open fun fromUri(context: Context, sourceUri: Uri): Callable<InputStream>

Creates different InputStreams depending on the contents of the Uri

Throws

for Uri's that can't be loaded.


open fun fromUri(context: Context, sourceUri: Uri, @Nullable requestProperty: Map<String, String>): Callable<InputStream>

Creates different InputStreams depending on the contents of the Uri.

Parameters

requestProperty

Adds connection properties to created input stream.

Throws

for Uri's that can't be loaded.