insert_group_async


Description:

[ Version ( since = "0.7.0" ) ]
public async void insert_group_async (ContactsGroup group, Cancellable? cancellable)

Inserts a new contact group described by group.

The user must be authenticated to use this function. this and group are both reffed when this function is called, so can safely be unreffed after this function returns.

callback should call insert_entry_async.end to obtain a ContactsGroup representing the inserted group and to check for possible errors.

For more details, see insert_group, which is the synchronous version of this function, and insert_entry_async, which is the base asynchronous insertion function.

Parameters:

this

a ContactsService

group

the ContactsGroup to insert

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when insertion is finished

user_data

data to pass to the callback function