ImageSource

@Serializable
data class ImageSource @JvmOverloads constructor(val image: Bitmap?, val imageUrl: String? = null)

Url of the image or Bitmap. The Bitmap takes precedence if url and Bitmap are defined.

Constructors

Link copied to clipboard
constructor(image: Bitmap?, imageUrl: String? = null)

Properties

Link copied to clipboard
@Serializable(with = BitmapBase64Serializer::class)
@SerialName(value = "base64")
val image: Bitmap?

Bitmap to be processed.

Link copied to clipboard
val imageUrl: String? = null

Url string of the image.