detectTypeSafe

Detecting the Type by content, this can take some time, you need to call this in a background thread.

open fun detectTypeSafe(uri: Uri): SourceType