buildImageUrl() function to generate the optimized image URL. It detects the right dimensions for the device and returns a resized version of the image automatically.
Android
Generates a resized image URL based on the view’s width so the correct image size is fetched automatically.Java
iOS
Builds an optimized image URL by calculating the display width of the image view and appending it to the source URL.Swift