put_contact


Description:

public bool put_contact (Contact contact, string? extra, uint32 custom_flags, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error

This is a convenience wrapper for put_contacts, which is the preferred way to add or modify multiple contacts when possible.

Parameters:

this

An BookCache

contact

an Contact to be added

extra

extra data to store in association with this contact

custom_flags

custom flags for the contact, not interpreted by the this

offline_flag

one of CacheOfflineFlag, whether putting this contact in offline

cancellable

optional Cancellable object, or null

Returns:

true on success, otherwise false is returned and throws is set appropriately.