Function

ABPersonSetImageData(_:_:)

Sets the image for this person to the given data.

Declaration

iOS
func ABPersonSetImageData(_ person: ABRecord!, _ imageData: CFData!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
macOS, Mac Catalyst
func ABPersonSetImageData(_ person: ABPersonRef!, _ imageData: CFData!) -> Bool

Parameters

person

The person whose image data you wish to set.

imageData

The image data to use as the image for person.

Return Value

true if successful, false otherwise.

See Also

People

func ABCopyArrayOfAllPeople(ABAddressBookRef!) -> Unmanaged<CFArray>!

Returns an array of all the people in the Address Book database.

func ABGetMe(ABAddressBookRef!) -> Unmanaged<ABPersonRef>!

Returns the ABPerson object for the logged-in user.

func ABPersonCopyImageData(ABRecord!) -> Unmanaged<CFData>!

Returns data that contains a picture of a person.

func ABPersonCopyParentGroups(ABPersonRef!) -> Unmanaged<CFArray>!

Returns an array of groups that a person belongs to.

func ABPersonCopyVCardRepresentation(ABPersonRef!) -> Unmanaged<CFData>!

Returns the vCard representation of the person as a data object in vCard format.

func ABPersonCreate() -> Unmanaged<ABRecord>!

Returns a newly created person object.

func ABPersonCreateWithVCardRepresentation(CFData!) -> Unmanaged<ABPersonRef>!

Returns a new ABPerson object initialized with the given data in vCard format.

func ABSetMe(ABAddressBookRef!, ABPersonRef!)

Sets the record that represents the logged-in user.