query Items
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
start Index
Index of the first item to retrieve, null
means start from the first item in the SyncList
include Start Index
When true
- result includes the item with the startIndex. When false
- the item with the startIndex is skipped. Ignored when startIndex = null
query Order
QueryOrder for sorting results.
page Size
Page size for querying items from backend.
use Cache
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.