[ Version ( since = "0.8.0" ) ]
public bool set_photo (ContactsService service, uint8? data, size_t length, string? content_type, Cancellable? cancellable = null) throws Error
Sets the contact's photo to data or, if data is null, deletes the contact's
photo.
content_type must be specified if data is non-null.
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.
If there is an error setting the photo, a gdata_service_error_protocol_error error will be returned.
| this | |
| service | |
| data |
the image data, or null |
| length |
the image length, in bytes |
| content_type |
the content type of the image, or null |
| cancellable |
optional Cancellable object, or null |
|
true on success, false otherwise |