Url

data class Url(val url: String) : ImageSource

An image referenced by HTTP/HTTPS URL.

Samples

val imageSource = ImageSource.Url("https://www.example.com/path/to/photo.jpg") // Image source from URL(The URL will be sent to the API.
// The image will not be loaded on your device)

// Add image Source to content and send to API...

Constructors

Link copied to clipboard
constructor(url: String)

Properties

Link copied to clipboard
val url: String

The full URL to the image.

Functions

Link copied to clipboard

Serializes this ImageSource to a string representation.