History Data Provider
LocalDataProvider typed to store HistoryRecord items.
Instance of HistoryDataProvider can be retrieved from MapboxSearchSdk.serviceProvider.
See also
Functions
add
Link copied to clipboard
open fun add(record: HistoryRecord, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Adds a record to this data provider.
abstract fun add(record: HistoryRecord, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Adds a record to this data provider.
addAll
Link copied to clipboard
open fun addAll(records: List<HistoryRecord>, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
abstract fun addAll(records: List<HistoryRecord>, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
addOnDataChangedListener
Link copied to clipboard
open fun addOnDataChangedListener(listener: LocalDataProvider.OnDataChangedListener<HistoryRecord>)
Content copied to clipboard
abstract fun addOnDataChangedListener(executor: Executor, listener: LocalDataProvider.OnDataChangedListener<HistoryRecord>)
Content copied to clipboard
clear
Link copied to clipboard
abstract fun clear(executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
contains
Link copied to clipboard
open fun contains(id: String, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
abstract fun contains(id: String, executor: Executor, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
get
Link copied to clipboard
open fun get(id: String, callback: CompletionCallback<in HistoryRecord?>): AsyncOperationTask
Content copied to clipboard
abstract fun get(id: String, executor: Executor, callback: CompletionCallback<in HistoryRecord?>): AsyncOperationTask
Content copied to clipboard
getAll
Link copied to clipboard
open fun getAll(callback: CompletionCallback<List<HistoryRecord>>): AsyncOperationTask
Content copied to clipboard
abstract fun getAll(executor: Executor, callback: CompletionCallback<List<HistoryRecord>>): AsyncOperationTask
Content copied to clipboard
registerIndexableDataProviderEngineLayer
Link copied to clipboard
open fun registerIndexableDataProviderEngineLayer(dataProviderEngineLayer: IndexableDataProviderEngineLayer, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
abstract fun registerIndexableDataProviderEngineLayer(dataProviderEngineLayer: IndexableDataProviderEngineLayer, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
remove
Link copied to clipboard
open fun remove(id: String, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
Removes the record with specified id.
abstract fun remove(id: String, executor: Executor, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
Removes the record with specified id.
removeOnDataChangedListener
Link copied to clipboard
abstract fun removeOnDataChangedListener(listener: LocalDataProvider.OnDataChangedListener<HistoryRecord>)
Content copied to clipboard
unregisterIndexableDataProviderEngineLayer
Link copied to clipboard
open fun unregisterIndexableDataProviderEngineLayer(dataProviderEngineLayer: IndexableDataProviderEngineLayer, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
abstract fun unregisterIndexableDataProviderEngineLayer(dataProviderEngineLayer: IndexableDataProviderEngineLayer, executor: Executor, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
update
Link copied to clipboard
open fun update(record: HistoryRecord, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Updates record in this data provider.
abstract fun update(record: HistoryRecord, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Updates record in this data provider.
Properties
dataProviderName
Link copied to clipboard