Image

data class Image(mediumUrl: String? = null, highUrl: String? = null, extraHighUrl: String?) : Parcelable

Constructors

Link copied to clipboard
constructor(mediumUrl: String? = null, highUrl: String? = null, extraHighUrl: String?)

Properties

Link copied to clipboard

Returns the highest fidelity image URL, or null if no image URLs

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun getUrlForDensity(density: Int): String?

Determine which of the 3 image URLs should be used to display the image based on the screen's density. If the density-appropriate URL is null, return the highest fidelity URL.

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