fromParts

fun fromParts(scheme: String?, ssp: String?, fragment: String?): Uri

Creates an opaque Uri from the given components. Encodes the ssp which means this method cannot be used to create hierarchical URIs.

Return

Uri composed of the given scheme, ssp, and fragment

Parameters

scheme

of the URI

ssp

scheme-specific-part, everything between the scheme separator (':') and the fragment separator ('#'), which will get encoded

fragment

fragment, everything after the '#', null if undefined, will get encoded

See also

if you don't want the ssp and fragment to be encoded

Throws

if scheme or ssp is null