DiscoveryImageMetadata

data class DiscoveryImageMetadata(val url: String?, val width: Int?, val height: Int?, val ratio: String?, val fallback: Boolean?, val domainList: List<String>?) : Parcelable

Represents image metadata in the Discovery API.

Holds details about an image, such as URL, dimensions, and domain.

Constructors

Link copied to clipboard
constructor(url: String?, width: Int?, height: Int?, ratio: String?, fallback: Boolean?, domainList: List<String>?)

Properties

Link copied to clipboard

List of domains for the image, if available.

Link copied to clipboard

Indicates if the image is a fallback, if available.

Link copied to clipboard
val height: Int?

The image height, if available.

Link copied to clipboard

The image aspect ratio, if available.

Link copied to clipboard
val url: String?

The image URL, if available.

Link copied to clipboard
val width: Int?

The image width, if available.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)