Package com.tomtom.ivi.platform.contacts.api.common.util
The com.tomtom.ivi.platform.contacts.api.common.util package contains useful helper classes that can be used to simplify working with features provided by the contacts service. This package can be used for implementing a custom contacts service or in a frontend using the contacts service.
External links
Contacts service.
Types
Properties
Returns the contact group of the given contact. For contacts with western-European names, this is typically the first letter of the primary sort key of the contact. Contacts whose primary sort key does not start with a letter or language character are put into the group MISCELLANEOUS_CONTACT_GROUP. For example, a contact whose primary sort key starts with "5" or ">" or "-" are part of this group.
Represents the miscellaneous contact group. Contacts whose primary sort key does not start with a human language letter or character are part of this group. See also Contact.contactGroup for more details.
Functions
Compare phone numbers phoneNumber1 and phoneNumber2, return true if they're identical enough for caller ID purposes.
Returns a StringResolver with the following priority order:
Finds a contact with the specified contactId.
Finds a contact with the specified displayName.
Finds a contact with the specified displayName and phoneNumber.
Finds a contact with the specified phoneNumber.
Returns a list of the first matching Contacts with the specified displayNames. An empty list is returned if no contact can be found with a matching display name.
Find the first PhoneNumber matching the specified number or return null
if it cannot be found in this collection.
Retrieves the AddressType as string represented by StringResolver from the resources.
Retrieve the PhoneNumberType as a StringResolver. Strings are provided by Android resources except for the PhoneNumberType.Custom type which is provided by PhoneNumberType.customType.
Launches a query that returns the LiveData indicator of whether the source is empty.
Converts a list of Contacts to a list of ContactItems.