DittoLiveQuery

@objc
public class DittoLiveQuery : NSObject

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

    @objc
    public let query: String
  • The name of the collection that the live query is based on.

    Declaration

    Swift

    @objc
    public let collectionName: String