ImageSource

sealed interface ImageSource(source)

Represents a source of an image. This sealed interface has two implementations: one wrapping a URL and another wrapping raw base64-encoded image data.

Note: This API is internal and should not be used outside intended usage contexts. Its structure and behavior may change without notice.

Inheritors

Types

Link copied to clipboard
@SerialName(value = "base64")
data class Base64(val data: String, val mediaType: String) : ImageSource

Represents image data encoded in Base64 format. This class contains the encoded string representation of the image along with its media type information.

Link copied to clipboard
@SerialName(value = "url")
data class Url(val url: String) : ImageSource

Represents an image source defined by a URL.