ContactSelection

sealed class ContactSelection : Parcelable

The selection criteria of the query.

Types

Link copied to clipboard
object All : ContactsDataSourceQuery.ContactSelection

Select all contacts.

Link copied to clipboard
object Favorites : ContactsDataSourceQuery.ContactSelection

Select favorite contacts.

Link copied to clipboard
data class FindContactsByDisplayNames(val displayNames: List<String>) : ContactsDataSourceQuery.ContactSelection

For each entry in displayNames, find the first contact whose display name starts with any of the provided display names.

Link copied to clipboard
data class FindContactsByPhoneNumber(val phoneNumber: String) : ContactsDataSourceQuery.ContactSelection

Finds contacts with the specified phoneNumber.

Link copied to clipboard
data class FindContactsBySearchKey(val searchKey: String) : ContactsDataSourceQuery.ContactSelection

Search for contacts whose Contact.givenName, Contact.familyName, Contact.companyName or Contact.displayName starts with the specified searchKey.

Link copied to clipboard
data class FindContactsBySource(val source: ContactSource) : ContactsDataSourceQuery.ContactSelection

Returns a list of contacts originating from the specified source, or an empty list if none were found.

Link copied to clipboard
object Groups : ContactsDataSourceQuery.ContactSelection

Group all contacts by contact's first character (it can be a letter, a number, a symbol etc) and contacts count. Used in the scroll bar in order to calculate the recycler view's index.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard