ditto-lib / live.ditto / DittoLiveQuery

DittoLiveQuery

class DittoLiveQuery

The type that is returned when calling observe on a DittoCollection object. It handles the logic for calling the event handler that is provided to the observe call.

Properties

collectionName

val collectionName: String

the name of the collection that the live query is based on.

limit

val limit: Int

the maximum number of documents that will be returned as part of any one invocation of the closure provided.

offset

val offset: Int

the number of documents to offset the query results by.

query

val query: String

the query that the live query is based on.

Functions

finalize

fun finalize(): Unit

stop

fun stop(): Unit