Contents

ABMultiValueInsertValueAndLabelAtIndex(_:_:_:_:_:)

Inserts a value and a label into a multivalue property.

Declaration

func ABMultiValueInsertValueAndLabelAtIndex(_ multiValue: ABMutableMultiValue!, _ value: CFTypeRef!, _ label: CFString!, _ index: CFIndex, _ outIdentifier: UnsafeMutablePointer<ABMultiValueIdentifier>!) -> Bool

Parameters

  • multiValue:

    The multivalue property into which to insert value.

  • value:

    The value to insert.

  • label:

    The label to insert.

  • index:

    The location, in multiValue, at which to insert value and label.

    Raises an exception when out of bounds.

  • outIdentifier:

    On output, the identifier of the added value.

Return Value

true when value and label are inserted successfully into multiValue, false otherwise.

Discussion

This function performs no type checking. It allows the insertion of values whose type does not match the type declared for multiValue.

This function takes an index. If you have an identifier, use the ABMultiValueGetIndexForIdentifier(_:_:) function to get the corresponding index.

See Also

Deprecated