toImageDescriptor

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

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


fun DrawableResolver.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT): ImageDescriptor

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


@JvmName(name = "toImageDescriptorOrNull")
fun LiveData<DrawableResolver?>.toImageDescriptor(imageType: ImageType = ImageType.DEFAULT): LiveData<ImageDescriptor?>
@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.