Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
11.0
11.1
11.2
11.3
11.4
11.5
12.0
12.1
12.2
12.3
Statistic
FMM
Blog
CNContact.HasValue
Checks whether a value is available in the loaded contact.
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
Contacts | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes | Paid |
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
Created 11st February 2022, last changed 14th February 2022
CNContact.EditInAddressbook - CNContact.IsUnifiedWithContact
Feedback: Report problem or ask question.
