contactGroup

fun Contact.contactGroup(orderBy: ContactsDataSourceQuery.ContactOrderBy): String

Returns the contact group of the given contact based on the orderBy provided. 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.

Parameters

orderBy

defines which Contact property to use for grouping.