Package-level declarations
The com.tomtom.ivi.platform.contacts.api.common.ui package contains useful UI helper classes, used in a frontend to represent a contact.
Core contacts UI library
The createContactInformationControlImageViewModel function produces images which can be use to represent a contact. It uses the contacts service for retrieving the contact image, if it exists. Otherwise, other relevant information is used to create a contact image.
External links
ContactsService
Functions
Link copied to clipboard
fun Contact.getImageOrFallback(showGenericAvatarWithoutContact: Boolean = true, @DrawableRes patternResource: Int = R.drawable.ttivi_contactsui_icon_pattern, @DrawableRes genericAvatarResource: Int = R.drawable.ttivi_contactsui_avatar_icon_generic): ImageDescriptor?
Creates images for contacts.