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
-
Emit event when new contact is created
Declaration
Swift
public var newContact: AnyPublisher<QNContact, Never> { get } -
Emit event when a contact is updated
Declaration
Swift
public var contactUpdated: AnyPublisher<QNContact, Never> { get } -
Emit event when a contact is deleted
Declaration
Swift
public var contactDeleted: AnyPublisher<QNContact, Never> { get } -
getContacts(using:AsynchronousfetchPresences: fromCache: ) Fetch all contacts filtered by source
Declaration
Parameters
usingSources from which the contacts will be fetched; if nil by default, it will get the sdk configuration.
fetchPresencesRetrieve presences; if nil by default, it will get the sdk configuration.
fromCacheRetrieve from cache or server; true by default
resultResult with the list of Contacts
-
add(contact:Asynchronous) -
update(contact:Asynchronous) -
delete(contact:Asynchronous) Remove a contact
Declaration
Swift
public func delete(contact: QNContact) async throwsParameters
contactContact to remove