ru.dgis.sdk.NativeObject
SearchHistory(context: Context)
context
Context
fun items(page: SearchHistoryPage): Future<SearchHistoryResult>
Returns a page of the search history. Items are sorted by addition time (from recent to oldest).
page
SearchHistoryPage
Future<SearchHistoryResult>
fun addItem(item: SearchHistoryItem): Unit
Adds an item to the search history. If the same item already exists, the earlier duplicate is removed.
item
SearchHistoryItem
Unit
fun addItems(items: List<SearchHistoryItem>): Unit
Adds a list of items to the search history. The list is considered to be in chronological order. Any duplicates are removed.
items
List<SearchHistoryItem>
fun removeItem(item: SearchHistoryItem): Unit
Removes an item from the search history.
fun removeItems(items: List<SearchHistoryItem>): Unit
Removes a list of items from the search history.
fun clear(): Unit
Clears the search history.
val capacity
Long
Gets the maximum size of the search history.
val onHistoryChanged
Channel<ChangeType>