Companion

Functions

Link copied to clipboard
fun canParse(url: String, base: String = definedExternally): Boolean

The URL.canParse() static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.

fun canParse(url: String, base: URL): Boolean
fun canParse(url: URL, base: String = definedExternally): Boolean
fun canParse(url: URL, base: URL): Boolean
Link copied to clipboard

The createObjectURL() static method of the URL interface creates a string containing a URL representing the object given in the parameter.

Link copied to clipboard
fun parse(url: String, base: String = definedExternally): URL?

The URL.parse() static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.

fun parse(url: String, base: URL): URL?
fun parse(url: URL, base: String = definedExternally): URL?
fun parse(url: URL, base: URL): URL?
Link copied to clipboard

The revokeObjectURL() static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.