QNAddressBooksRepository
public class QNAddressBooksRepository
Service to manage contact actions and subscribe to contact events
-
Sources from which the contacts will be fetched
- contacts
- phonebooks
- domain
- static
- groups
Declaration
Swift
public enum Source : String
-
Delegate for subscribing to contact events like new/remove contact
Declaration
Swift
public weak var delegate: QNAddressBooksDelegate?
-
Fetch all contacts filtered by source
Declaration
Parameters
using
Sources from which the contacts will be fetched
fromCache
Retrieve from cache or server; true by default
result
Result with the list of Contacts
-
Remove a contact
Declaration
Swift
public func delete(contact: QNContact, result: @escaping (Result<Void, QNSDKError>) -> Void)
Parameters
contact
Contact to remove