toImageDescriptor

@JvmName(name = "toImageDescriptorOrNull")
fun DrawableResolver?.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): ImageDescriptor?

A convenience function to map a nullable DrawableResolver to an ImageDescriptor with the provided imageType and scaleType.


fun DrawableResolver.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): ImageDescriptor
fun ImageSource.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): ImageDescriptor

A convenience function to map a DrawableResolver to an ImageDescriptor with the provided imageType and scaleType.


@JvmName(name = "toImageDescriptorOrNull")
fun LiveData<DrawableResolver?>.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): LiveData<ImageDescriptor?>

A convenience function to create a LiveData mapping from a nullable DrawableResolver to an ImageDescriptor with the provided imageType and scaleType.


fun LiveData<DrawableResolver>.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): LiveData<ImageDescriptor>

A convenience function to create a LiveData mapping from a DrawableResolver to an ImageDescriptor with the provided imageType and scaleType.


@JvmName(name = "toImageDescriptorOrNull")
fun LiveData<DrawableResolver?>.toImageDescriptor(imageType: LiveData<ImageType>): LiveData<ImageDescriptor?>

A convenience function to create a LiveData mapping from a nullable DrawableResolver to an ImageDescriptor with the provided imageType.


A convenience function to create a LiveData mapping from a DrawableResolver to an ImageDescriptor with the provided imageType.