Class

CNContactFetchRequest

An object that defines fetching options to use while fetching contacts.

Overview

You need at least one contact property key to fetch a contact’s properties. Use this class with the enumerateContacts(with:usingBlock:) method to execute the contact fetch request.

Topics

Contact Fetching Options

var mutableObjects: Bool

A Boolean value that indicates whether to return mutable contacts.

var unifyResults: Bool

A Boolean value that indicates whether to return linked contacts as unified contacts.

var sortOrder: CNContactSortOrder

The sort order for contacts.

Keys Used in Fetching Contacts

init(keysToFetch: [CNKeyDescriptor])

The designated initializer for a fetch request that uses the specified keys.

var keysToFetch: [CNKeyDescriptor]

The properties to fetch in the returned contacts.

var predicate: NSPredicate?

The predicate to match contacts against.

Relationships

Inherits From