DittoLiveQuery

public class DittoLiveQuery

The type that is returned when calling when calling observe or observeLocal on a DittoPendingCursorOperation object. It handles the logic for calling the event handler that is provided to observe or observeLocal calls. DittoLiveQuery objects must be kept in scope for as long as you with to have your event handler be called when there is an update to a document matching the query you provide.

  • The query that the live query is based on.

    Declaration

    Swift

    public var query: String { get }
  • The name of the collection that the live query is based on.

    Declaration

    Swift

    public var collectionName: DittoCollectionName { get }
  • Undocumented

    Declaration

    Swift

    public func stop()