Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CNContact.HasValue
Checks whether a value is available in the loaded contact.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "CNContact.HasValue"; ContactIdentifier; Selector ) More
Parameters
Parameter | Description | Example |
---|---|---|
ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |
Selector | Which value to check. | "nickname" |
Result
Returns 1, 0 or error.
Description
Checks whether a value is available in the loaded contact.Contacts can be partially loaded.
Returns 1 if value is loaded and thus available or 0 if not.
Use CNContactStore.FetchContact to reload a contact.
See also
Release notes
- Version 12.1
- Added CNContact.HasValue function.
Blog Entries
This function checks for a license.
Created 11st February 2022, last changed 14th February 2022
CNContact.EditInAddressbook - CNContact.IsUnifiedWithContact