toUri

fun String.toUri(separator: String = Path.DIRECTORY_SEPARATOR): Uri

Parse this String into a Uri. This method will not throw if the URI is malformed.

Parameters

separator

The path separator used to separate URI path elements. By default, this will be '/' on UNIX systems and '\' on Windows systems.