Downloads and returns the contact's photo, if they have one, asynchronously.
this and service are both reffed when this function is called, so can safely be unreffed
after this function returns.
When the operation is finished, callback will be called. You can then call get_photo_async.end
to get the results of the operation.
For more details, see get_photo, which is the synchronous version of this function.
If cancellable is not null, then the operation can be cancelled by triggering the
cancellable object from another thread. If the operation was cancelled, the error g_io_error_cancelled
will be returned by get_photo_async.end.
If there is an error getting the photo, a gdata_service_error_protocol_error error will be returned by get_photo_async.end.
| this | |
| service | |
| cancellable |
optional Cancellable object, or null |
| callback |
a TaskReadyCallback to call when the photo has been retrieved, or null |
| user_data |
data to pass to the |