Platforms to show: All Mac Windows Linux Cross-Platform
CNLabeledValueMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The CNLabeledValue class is a thread-safe class that defines an immutable value object that combines a contact property value with a label. For example, a contact phone number could have a label of Home, Work, iPhone, etc.
- 4 properties
- property Handle as Integer
- property Identifier as String
- property Label as String
- property Value as Variant
- 5 methods
- method Constructor(label as string, value as Variant)
- method copy as CNLabeledValueMBS
- method labeledValueBySettingLabel(label as string) as CNLabeledValueMBS
- method labeledValueBySettingLabel(label as string, value as Variant) as CNLabeledValueMBS
- method labeledValueBySettingValue(value as Variant) as CNLabeledValueMBS
- 9 shared methods
- shared method available as Boolean
- shared method CNLabelDateAnniversary as String
- shared method CNLabelEmailiCloud as String
- shared method CNLabelHome as String
- shared method CNLabelOther as String
- shared method CNLabelURLAddressHomePage as String
- shared method CNLabelWork as String
- shared method labeledValueWithLabel(label as string, value as Variant) as CNLabeledValueMBS
- shared method localizedStringForLabel(label as string) as string
This class has no sub classes.
Some methods using this class:
- CNContactMBS.emailAddresses as CNLabeledValueMBS()
- CNContactMBS.instantMessageAddresses as CNLabeledValueMBS()
- CNContactMBS.phoneNumbers as CNLabeledValueMBS()
- CNContactMBS.postalAddresses as CNLabeledValueMBS()
- CNMutableContactMBS.setDates(dates() as CNLabeledValueMBS)
- CNMutableContactMBS.setEmailAddresses(emailAddresses() as CNLabeledValueMBS)
- CNMutableContactMBS.setInstantMessageAddresses(instantMessageAddresses() as CNLabeledValueMBS)
- CNMutableContactMBS.setPhoneNumbers(phoneNumbers() as CNLabeledValueMBS)
- CNMutableContactMBS.setPostalAddresses(postalAddresses() as CNLabeledValueMBS)
- CNMutableContactMBS.setURLAddresses(urlAddresses() as CNLabeledValueMBS)
Some examples using this class:
- /Mac64bit/Contacts/CNContactViewController test
- /Mac64bit/Contacts/Contacts Display Person
- /Mac64bit/Contacts/Contacts Test
Blog Entries
Release notes
- Version 17.1
- Fixed a bug in CNLabeledValueMBS failing to return phone number value.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CNKeyDescriptorMBS - CNMutableContactMBS