Platforms to show: All Mac Windows Linux Cross-Platform

Back to CNContactFetchRequestMBS class.

CNContactFetchRequestMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The designated initializer for a fetch request that uses all keys.

Same as calling other Constructor and passing result of CNContactStoreMBS.AllFetchKeys function.

See also:

CNContactFetchRequestMBS.Constructor(keysToFetch() as CNKeyDescriptorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The designated initializer for a fetch request that uses the specified keys.

keysToFetch: An array of contact property keys and/or key descriptors from contacts objects to be fetched in the returned contacts.

See also:

CNContactFetchRequestMBS.keysToFetch as CNKeyDescriptorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The properties to fetch in the returned contacts.

An array of contact property keys or key descriptors from contact objects to be fetched in the returned contacts. For example, CNContactEmailAddressesKey, CNContactPhoneNumbersKey, CNContactFormatterStyleFullName fetches the contact’s email addresses, phone numbers, and contact’s full name with the contact formatter.

Some examples using this method:

CNContactFetchRequestMBS.setKeysToFetch(keysToFetch() as CNKeyDescriptorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Sets the properties to fetch in the returned contacts.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...