getUrlForDensity

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.

Return

the image URL most appropriate for the given density

Parameters

density

the device's screen density