setOptionalCardImage

fun setOptionalCardImage(imageView: ImageView?, cardAspectRatio: Float, cardImageUrl: String?, cardAltImageText: 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

cardAltImageText

The image content description text to be announced by TalkBack

card

The card being rendered