IndexableDataProvider

interface IndexableDataProvider<R : IndexableRecord>

Experimental API, can be changed or removed in the next SDK releases. Defines an interface for external data indexing.

See also

Functions

add
Link copied to clipboard
abstract fun add(record: R)
Add record to data provider.
addAll
Link copied to clipboard
abstract fun addAll(records: List<R>)
Add multiple records to data provider.
clear
Link copied to clipboard
abstract fun clear()
Removes all of the elements from this data provider.
contains
Link copied to clipboard
abstract fun contains(id: String): Boolean
Check by id if item contains in provider.
get
Link copied to clipboard
abstract fun get(id: String): R?
Get item by id.
getAll
Link copied to clipboard
abstract fun getAll(): List<R>
Get all items from provider.
remove
Link copied to clipboard
abstract fun remove(id: String)
Remove record with id from data provider.
update
Link copied to clipboard
abstract fun update(record: R)
Update record in data provider.

Properties

dataProviderName
Link copied to clipboard
abstract val dataProviderName: String
Data provider name.

Inheritors

LocalDataProvider
Link copied to clipboard