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

image

The image content.

imageType

The ImageType of the given image.

scaleType

The ScaleType of the given image.

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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard