Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

CNContactMBS.CNContactThumbnailImageDataKey as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: One of the keys for contact properties.
Notes: Thumbnail data.

Feedback, Comments & Corrections

CNContactMBS.CNContactTypeKey as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: One of the keys for contact properties.
Notes: Contact type.

Feedback, Comments & Corrections

CNContactMBS.CNContactUrlAddressesKey as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: One of the keys for contact properties.
Notes: URL Address.

Feedback, Comments & Corrections

CNContactMBS.descriptorForAllComparatorKeys as CNKeyDescriptorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Fetches all the keys required for the contact sort comparator.
Notes: This method implements the CNKeyDescriptor protocol and can be used as an array element when fetching keys for contacts.

Feedback, Comments & Corrections

CNContactMBS.localizedStringForKey(key as String) as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a string containing the localized contact property name.
Notes:
key: A string containing the contact property key.

Returns a localized string containing the contact property name.

This method returns a localized string for a contact property key. For example, the value of a Canadian CNContactPostalAddressesKey field would be “Postal Code”, while the value of a French one would be “Code Postal”.

Feedback, Comments & Corrections

CNContactMBS.predicateForContactsInContainerWithIdentifier(containerIdentifier as String) as NSPredicateMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a predicate to find the contacts in the specified container.
Notes: Returns a predicate that can be used to fetch contacts from CNContactStore.

Feedback, Comments & Corrections

CNContactMBS.predicateForContactsInGroupWithIdentifier(groupIdentifier as String) as NSPredicateMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a predicate to find the contacts that are members in the specified group.
Notes: Returns a predicate that can be used to fetch contacts from CNContactStore.

Feedback, Comments & Corrections

CNContactMBS.predicateForContactsMatchingEmailAddress(emailAddress as String) as NSPredicateMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a predicate to find the contacts whose email address matches the specified value.
Example:
Dim keysToFetch() As CNKeyDescriptorMBS
keysToFetch.append CNContactVCardSerializationMBS.descriptorForRequiredKeys

Dim predicate As NSPredicateMBS = CNContactMBS.predicateForContactsMatchingEmailAddress("test@test.test")

Dim error As NSErrorMBS
Dim contacts() As CNContactMBS = m.unifiedContactsMatchingPredicate(predicate, keysToFetch, error)

If error <> Nil Then
List.AddRow "Error: "+error.LocalizedDescription
Else
List.AddRow Str(contacts.Ubound+1)+" contacts found"
End If
Notes:
emailAddress: The email address to be matched.

Returns a predicate that you can use to fetch contacts from CNContactStoreMBS class.

Requires macOS 10.13 or newer.

Feedback, Comments & Corrections

CNContactMBS.predicateForContactsMatchingName(name as String) as NSPredicateMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a predicate to find the contacts matching the specified name.
Example:
Dim keysToFetch() As CNKeyDescriptorMBS
keysToFetch.append CNContactVCardSerializationMBS.descriptorForRequiredKeys

Dim predicate As NSPredicateMBS = CNContactMBS.predicateForContactsMatchingName("Peter")

Dim error As NSErrorMBS
Dim contacts() As CNContactMBS = m.unifiedContactsMatchingPredicate(predicate, keysToFetch, error)

If error <> Nil Then
List.AddRow "Error: "+error.LocalizedDescription
Else
List.AddRow Str(contacts.Ubound+1)+" contacts found"
End If
Notes:
The name can contain any number of words.
Returns a predicate that can be used to fetch contacts from CNContactStore.

Feedback, Comments & Corrections

CNContactMBS.predicateForContactsMatchingPhoneNumber(phoneNumber as CNPhoneNumberMBS) as NSPredicateMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a predicate to find the contacts whose phone number matches the specified value.
Example:
Dim keysToFetch() As CNKeyDescriptorMBS
keysToFetch.append CNContactVCardSerializationMBS.descriptorForRequiredKeys

Dim phone As New CNPhoneNumberMBS("123456789‬")
Dim predicate As NSPredicateMBS = CNContactMBS.predicateForContactsMatchingPhoneNumber(phone)

Dim error As NSErrorMBS
Dim contacts() As CNContactMBS = m.unifiedContactsMatchingPredicate(predicate, keysToFetch, error)

If error <> Nil Then
List.AddRow "Error: "+error.LocalizedDescription
Else
List.AddRow Str(contacts.Ubound+1)+" contacts found"
End If
Notes:
Returns a predicate that you can use to fetch contacts from CNContactStoreMBS.

Requires macOS 10.13 or newer.

Feedback, Comments & Corrections

CNContactMBS.predicateForContactsWithIdentifiers(Identifiers() as String) as NSPredicateMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns a predicate to find the contacts matching the specified identifiers.
Notes: Returns a predicate that can be used to fetch contacts from CNContactStore.

Feedback, Comments & Corrections

Previous items

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

The biggest plugin in space...




Links
MBS Xojo PDF Plugins

Start Chat