add_contacts_sync


Description:

[ Version ( since = "3.4" ) ]
public bool add_contacts_sync (SList<Contact> contacts, BookOperationFlags opflags, out SList<string> out_added_uids, Cancellable? cancellable = null) throws Error

Adds contacts to this and sets out_added_uids to the UIDs of newly added contacts if successful.

This SList should be freed with util_free_string_slist.

If any of the contacts cannot be inserted, all of the insertions will be reverted and this method will return false.

Note: This is not modifying original contacts, thus if it's needed, then use e_contact_set (contact, E_CONTACT_UID, new_uid).

Parameters:

this

an BookClient

contacts

a SList of Contact objects to add

opflags

bit-or of BookOperationFlags

out_added_uids

UIDs of newly added contacts; can be null

cancellable

a Cancellable; can be null

Returns:

true if successful, false otherwise.




2022 vala-language.org