Ditto Collection
class DittoCollection
Content copied to clipboard
A reference to a collection in a DittoStore.
Functions
fetchAttachment
Link copied to clipboard
fun fetchAttachment(token: DittoAttachmentToken, onFetchEvent: (DittoAttachmentFetchEvent) -> Unit): DittoAttachmentFetcher
Content copied to clipboard
fun fetchAttachment(token: DittoAttachmentToken, fetchEventHandler: DittoAttachmentFetchEventHandler): DittoAttachmentFetcher
Content copied to clipboard
find
Link copied to clipboard
Generates a DittoPendingCursorOperation with the provided query that can be used to find the documents matching the query at a point in time or you can chain a call to
observe
, observeLocal
, or subscribe
if you want to get updates about documents matching the query as they occur.Generates a DittoPendingCursorOperation with the provided query that can be used to find the documents matching the query at a point in time or you can chain a call to
observe
, observeLocal
, or subscribe
if you want to get updates about documents matching the query as they occur.findAll
Link copied to clipboard
Generates a DittoPendingCursorOperation that can be used to find all documents in the collection at a point in time or you can chain a call to
observe
, observeLocal
, or subscribe
if you want to get updates about documents in the collection over time.findByID
Link copied to clipboard
Generates a DittoPendingIDSpecificOperation with the provided document ID that can be used to find the document at a point in time or you can chain a call to
observe
, observeLocal
, or subscribe
if you want to get updates about the document over time.insert
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
newAttachment
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
@JvmOverloads()
Content copied to clipboard