queryItems

abstract fun queryItems(mapSidOrUniqueName: String, startKey: String? = null, includeStartKey: Boolean = true, queryOrder: <Error class: unknown class> = QueryOrder.Ascending, pageSize: Int = kDefaultPageSize, useCache: Boolean = true): SyncIterator<SyncMap.Item>

Retrieve items without opening the SyncMap.

Return

New SyncIterator to sequentially access the elements from this SyncMap.

Parameters

mapSidOrUniqueName

SID or unique name of existing SyncMap.

startKey

Key of the first item to retrieve, null means start from the first item in the SyncMap

includeStartKey

When true - result includes the item with the startKey (if exist in the SyncMap). When false - the item with the startKey is skipped. Ignored when startKey = 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.