ABGroupSetDistributionIdentifier(_:_:_:_:)
Assigning a specific distribution identifier for a person’smulti-value list property so that the group can be used as a distributionlist (mailing list, in the case of an email property).
Declaration
func ABGroupSetDistributionIdentifier(_ group: ABGroupRef!, _ person: ABPersonRef!, _ property: CFString!, _ identifier: CFString!) -> BoolParameters
- group:
The group that
personbelongs to. - person:
The person whose distribution identifier for
propertyyou wish to change. IfNULL, this function raises an exception. - property:
The multi-value list property whose distribution identifier you wish to change.
- identifier:
The new distribution identifier, a label used by a multi-value list such as kABAddressHomeLabel for a kABAddressProperty. Pass
NULLto reset the distribution identifier to its default, a multi-value list’s primary identifier.
Return Value
true ifsuccessful, false otherwise.
Discussion
The default distribution identifier is a multi-value list’sprimary identifier. Use this function if you need to change thedistribution identifier for a particular person. For example, ifthe default identifier is a person’s home email but you want touse John’s work email, invoke this function passing kABEmailWorkLabel asthe identifier parameter, kABEmailProperty asthe property parameter, and John’sperson object as the person parameter.
See Also
Groups
ABCopyArrayOfAllGroups(_:)ABGroupAddGroup(_:_:)ABGroupAddMember(_:_:_:)ABGroupCopyArrayOfAllMembers(_:)ABGroupCopyArrayOfAllSubgroups(_:)ABGroupCopyDistributionIdentifier(_:_:_:)ABGroupCopyParentGroups(_:)ABGroupCreate()ABGroupCreateSearchElement(_:_:_:_:_:)ABGroupRemoveGroup(_:_:)ABGroupRemoveMember(_:_:_:)