Favorites Data Provider
LocalDataProvider typed to store FavoriteRecord items.
To obtain FavoritesDataProvider instance, please, use com.mapbox.search.ServiceProvider.favoritesDataProvider.
See also
Types
Functions
addOnDataChangedListener
Link copied to clipboard
open fun addOnDataChangedListener(listener: LocalDataProvider.OnDataChangedListener<FavoriteRecord>)
Content copied to clipboard
abstract fun addOnDataChangedListener(executor: Executor, listener: LocalDataProvider.OnDataChangedListener<FavoriteRecord>)
Content copied to clipboard
addOnDataProviderEngineRegisterListener
Link copied to clipboard
open fun addOnDataProviderEngineRegisterListener(listener: LocalDataProvider.OnDataProviderEngineRegisterListener)
Content copied to clipboard
Adds a listener to be notified when IndexableDataProviderEngine registered in this data provider.
abstract fun addOnDataProviderEngineRegisterListener(executor: Executor, listener: LocalDataProvider.OnDataProviderEngineRegisterListener)
Content copied to clipboard
Adds a listener to be notified when IndexableDataProviderEngine registered in this data provider.
clear
Link copied to clipboard
contains
Link copied to clipboard
get
Link copied to clipboard
open fun get(id: String, callback: CompletionCallback<in FavoriteRecord?>): AsyncOperationTask
Content copied to clipboard
abstract fun get(id: String, executor: Executor, callback: CompletionCallback<in FavoriteRecord?>): AsyncOperationTask
Content copied to clipboard
getAll
Link copied to clipboard
open fun getAll(callback: CompletionCallback<List<FavoriteRecord>>): AsyncOperationTask
Content copied to clipboard
abstract fun getAll(executor: Executor, callback: CompletionCallback<List<FavoriteRecord>>): AsyncOperationTask
Content copied to clipboard
registerIndexableDataProviderEngine
Link copied to clipboard
open fun registerIndexableDataProviderEngine(dataProviderEngine: IndexableDataProviderEngine, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Registers engine with this data provider.
abstract fun registerIndexableDataProviderEngine(dataProviderEngine: IndexableDataProviderEngine, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Registers engine with this data provider.
removeOnDataChangedListener
Link copied to clipboard
abstract fun removeOnDataChangedListener(listener: LocalDataProvider.OnDataChangedListener<FavoriteRecord>)
Content copied to clipboard
removeOnDataProviderEngineRegisterListener
Link copied to clipboard
abstract fun removeOnDataProviderEngineRegisterListener(listener: LocalDataProvider.OnDataProviderEngineRegisterListener)
Content copied to clipboard
unregisterIndexableDataProviderEngine
Link copied to clipboard
open fun unregisterIndexableDataProviderEngine(dataProviderEngine: IndexableDataProviderEngine, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
Unregisters engine from this data provider.
abstract fun unregisterIndexableDataProviderEngine(dataProviderEngine: IndexableDataProviderEngine, executor: Executor, callback: CompletionCallback<Boolean>): AsyncOperationTask
Content copied to clipboard
Unregisters engine from this data provider.
upsert
Link copied to clipboard
open fun upsert(record: FavoriteRecord, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Insert or update a record to this data provider.
abstract fun upsert(record: FavoriteRecord, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Insert or update a record in this data provider.
upsertAll
Link copied to clipboard
open fun upsertAll(records: List<FavoriteRecord>, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
abstract fun upsertAll(records: List<FavoriteRecord>, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard