queryItems

abstract fun queryItems(startIndex: Long? = null, includeStartIndex: Boolean = true, queryOrder: <Error class: unknown class> = QueryOrder.Ascending, pageSize: Int = kDefaultPageSize, useCache: Boolean = true): SyncIterator<SyncList.Item>

Retrieve items from the SyncList.

Return

New SyncIterator to sequentially access the elements from this SyncList.

Parameters

startIndex

Index of the first item to retrieve, null means start from the first item in the SyncList

includeStartIndex

When true - result includes the item with the startIndex. When false - the item with the startIndex is skipped. Ignored when startIndex = null

queryOrder

QueryOrder for sorting results.

pageSize

Page size for querying items from backend.

useCache

When true returns cached value if found in cache. Collect Events.onItemUpdated and Events.onItemRemoved to receive notifications about the item changes. When false - performs network request to get latest data from backend.