ImageDescriptor
data class ImageDescriptor(val image: ImageSource, val imageType: ImageType = ImageType.DEFAULT, val scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER)
A data class containing the information needed to display an image in common TomTom UI controls.
Parameters
Constructors
Link copied to clipboard
constructor(image: DrawableResolver, imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER)
A convenience constructor to create the class with a DrawableResolver.
constructor(remoteImage: RemoteImage, imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER)
A convenience constructor to create the class with a RemoteImage.
constructor(uri: Uri, imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER)
A convenience constructor to create the class with a Uri.
constructor(image: ImageSource, imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER)