# Titanium.Contacts.Group
An object which represents a group in the system contacts address book.
# Overview
See examples in Titanium.Contacts for more information.
These APIs are unavailable on macOS if the app is built on a version of Xcode < 12.
# Properties
# recordId
recordId :Number
Record identifier of the group. Single value. Deprecated for iOS 9 and later.
# Methods
# add
add(person) → void
Adds a person to this group.
Parameters
Name | Type | Description |
---|---|---|
person | Titanium.Contacts.Person | Person to add. For >= iOS9, it is not required to call save after calling this method. |
Returns
- Type
- void
# members
members() → Array<Titanium.Contacts.Person>
Gets people that are members of this group.
Returns
- Type
- Array<Titanium.Contacts.Person>
# remove
remove(person) → void
Removes a person from this group. For >= iOS9, it is not required to call save after calling this method.
Parameters
Name | Type | Description |
---|---|---|
person | Titanium.Contacts.Person | Person to remove. |
Returns
- Type
- void
# sortedMembers
sortedMembers(sortBy) → Array<Titanium.Contacts.Person>
Gets people that are members of this group, sorted in the specified order.
Parameters
Name | Type | Description |
---|---|---|
sortBy | Number | Method for sorting. |
Returns
- Type
- Array<Titanium.Contacts.Person>