FindContactsByDisplayNames
data class FindContactsByDisplayNames(val displayNames: List<String>) : ContactsDataSourceQuery.ContactSelection
Content copied to clipboard
For each entry in displayNames, find the first contact whose display name starts with any of the provided display names.
Returns list of contacts whose display name matches, an empty list otherwise.
Example usage: Taking into account a contacts list that has the following contact display names: "Alex B, Alexander G, Monica L, Monique F".
val contactsList = contacts.FindContactByDisplayNames(listOf("Alex", "Mon"))
// contactsList contains "Alex B" and "Monica L".
Content copied to clipboard