ImageSource

sealed class ImageSource

The source of the image.

Inheritors

Types

Link copied to clipboard
data class PublicUrl(val value: String) : ImageSource

The public URL that points to the source image.

Link copied to clipboard
data class S3Uri(val value: String) : ImageSource

The Amazon S3 URI that points to the source image.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this ImageSource as a PublicUrl and retrieves its kotlin.String value. Throws an exception if the ImageSource is not a PublicUrl.

Link copied to clipboard

Casts this ImageSource as a PublicUrl and retrieves its kotlin.String value. Returns null if the ImageSource is not a PublicUrl.

Link copied to clipboard

Casts this ImageSource as a S3Uri and retrieves its kotlin.String value. Throws an exception if the ImageSource is not a S3Uri.

Link copied to clipboard

Casts this ImageSource as a S3Uri and retrieves its kotlin.String value. Returns null if the ImageSource is not a S3Uri.