request_contact_info_async


Description:

[ Version ( since = "0.11.7" ) ]
public async bool request_contact_info_async (Cancellable? cancellable) throws Error

Requests an asynchronous request of the contact info of this.

When the operation is finished, callback will be called. You can then call request_contact_info_async.end to get the result of the operation.

If the operation is successful, the contact_info property will be updated (emitting "notify::contact-info" signal) before callback is called. That means you can call get_contact_info to get the new vCard inside callback.

Note that requesting the vCard from the network can take significant time, so a bigger timeout is set on the underlying D-Bus call. cancellable can be cancelled to free resources used in the D-Bus call if the caller is no longer interested in the vCard.

If CONTACT_INFO is not yet set on this, it will be set before its property gets updated and callback is called.

Parameters:

this

a Contact

cancellable

optional Cancellable object, null to ignore.

callback

a callback to call when the request is satisfied

user_data

data to pass to callback