Platforms to show: All Mac Windows Linux Cross-Platform
CNContactFormatterMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This class handles international ordering and delimiting for the contact name components. When formatting many contacts, create an instance of this class and use the instance methods; otherwise use the class methods.
- 2 properties
- 3 methods
- method attributedStringFromContact(contact as CNContactMBS, DefaultAttributes as Dictionary = nil) as NSAttributedStringMBS
- method Constructor
- method stringFromContact(contact as CNContactMBS) as String
- 7 shared methods
- shared method attributedStringFromContact(contact as CNContactMBS, Style as Integer, DefaultAttributes as Dictionary = nil) as NSAttributedStringMBS
- shared method available as Boolean
- shared method CNContactPropertyAttribute as String
- shared method delimiterForContact(contact as CNContactMBS) as String
- shared method descriptorForRequiredKeysForStyle(Style as Integer) as CNKeyDescriptorMBS
- shared method nameOrderForContact(contact as CNContactMBS) as Integer
- shared method stringFromContact(contact as CNContactMBS, Style as Integer) as String
- 5 constants
Display Name Order
Constant | Value | Description |
---|---|---|
CNContactDisplayNameOrderFamilyNameFirst | 2 |
Display name order by family name first. |
CNContactDisplayNameOrderGivenNameFirst | 1 |
Display name order by given name first. |
CNContactDisplayNameOrderUserDefault | 0 |
Display name order by user default. |
Styles
Constant | Value | Description |
---|---|---|
CNContactFormatterStyleFullName | 0 |
Combines the contact name components into a full name. |
CNContactFormatterStylePhoneticFullName | 1 |
Combines the contact phonetic name components into a phonetic full name. |
This class has no sub classes.
Some examples using this class:
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CNContactFetchRequestMBS - CNContactMBS