BasicUrl

class BasicUrl(urlString: String)

Represents a URL for an image.

This class is used to distinguish between a URL and a local file path. It encapsulates the string representation of the URL.

Parameters

urlString

The URL of the image.

Example:

val url = BasicUrl("https://picsum.photos/200")
println(url.toString())

Constructors

Link copied to clipboard
constructor(urlString: String)

Functions

Link copied to clipboard
open override fun toString(): String

Returns the string representation of the URL.