Companion

Functions

Link copied to clipboard
fun file(path: String): Uri

Create an URI from a file system path. The scheme will be file.

Link copied to clipboard
fun joinPath(base: Uri, vararg pathSegments: String): Uri

Create a new uri which path is the result of joining the path of the base uri with the provided path segments.

Link copied to clipboard
fun parse(value: String, strict: Boolean = definedExternally): Uri

Create an URI from a string, e.g. http://www.example.com/some/path, file:///usr/home, or scheme:with/path.