Function

ABMultiValueSetPrimaryIdentifier(_:_:)

Sets the primary value to be the value for the given identifier.

Declaration

func ABMultiValueSetPrimaryIdentifier(_ multiValue: ABMutableMultiValueRef!, _ identifier: CFString!) -> Bool

Parameters

multiValue

The multi-value list you wish to modify.

identifier

The identifier corresponding to the value you wish to designate as the primary value for this multi-value list. Use the ABMultiValueCopyIdentifierAtIndex(_:_:) function to get the identifier given the index. If identifier is NULL, this function raises an exception.

Return Value

true if successfully, false otherwise.

See Also

Multi Values

func ABMultiValueCount(ABMultiValueRef!) -> CFIndex

Returns the number of entries in a multi-value list.

func ABMultiValueCreateMutable(ABPropertyType) -> Unmanaged<ABMutableMultiValue>!

Returns a newly created mutable multi-value list object.

func ABMultiValuePropertyType(ABMultiValueRef!) -> ABPropertyType

Returns the type for the values in a multi-value list.

func ABMultiValueRemove(ABMutableMultiValueRef!, CFIndex) -> Bool

Removes the value and label at the given index.