Searching for contacts with the ContactsManager SDK
searchContacts
method provides full-featured search functionality with pagination support:
quickSearch
method:
name
: First, middle, last name, nicknameemail
: Email addressesphone
: Phone numbersaddress
: Physical addressesorganization
: Company name and departmentnotes
: Contact notes and additional informationContactSelectionOptions
:ContactSelectionOptions
struct/object allows you to configure:
selectionMode
: Single or multiple contact selectionfieldType
: Filter contacts by field type (phone, email, any)maxSelectionCount
: Maximum number of contacts that can be selected@MainActor
or dispatch to the main thread for Contact updates@MainActor
where accessing Contact objects