setOptionalCardImage

fun setOptionalCardImage(imageView: ImageView?, cardAspectRatio: Float, cardImageUrl: String?, card: Card)

Sets the card's image to a given url. The view may be null.

Parameters

imageView

The ImageView

cardAspectRatio

The aspect ratio as set by the card itself

cardImageUrl

The image url

card

The card being rendered