AccountProvider
@objc(ZDKChatAccountProvider)
public final class AccountProvider : NSObject
ZDKChatAccountProvider
gives the ability to observe account updates.
-
Observe account updates
Declaration
Swift
public func observeAccount(identifier: ObservableIdentifier = .uuid(), _ completion: @escaping (Account) -> Void) -> ObservationToken
Parameters
identifier
ObservableIdentifier to be exclusive, or unique
completion
block that executes everytime there is an update to the list of
Account
Return Value