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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

Blog Entries

This function checks for a license.

Created 11st February 2022, last changed 14th February 2022


CNContact.EditInAddressbook - CNContact.IsUnifiedWithContact

💬 Ask a question or report a problem