DittoStoreObserver
public class DittoStoreObserver
extension DittoStoreObserver: Hashable
extension DittoStoreObserver: Equatable
A store observer invokes an observation handler whenever results for its query change.
Create a store observer by calling DittoStore.registerObserver(). The
store observer will remain active until the owning Ditto object goes out
of scope or DittoStoreObserver.cancel() is called.
-
The query string of the store observer (as passed when registering it).
Declaration
Swift
public let queryString: String -
The query arguments of the store observer (as passed when registering it).
Declaration
Swift
public let queryArguments: Dictionary<String, Any?>? -
Convenience property, returns
trueif the store observer has been cancelled, otherwise returnsfalse. Also, a store observer is considered cancelled if the owning Ditto object goes out of scope.Declaration
Swift
public var isCancelled: Bool { get } -
Cancels the observation. The handler that was passed in when registering this store observer will no longer be called. No-op if this store observer is already cancelled or the owning
Dittoobject goes out of scope.Declaration
Swift
public func cancel()
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public static func == (left: DittoStoreObserver, right: DittoStoreObserver) -> Bool