registerDataProvider

abstract fun <R : IndexableRecord> registerDataProvider(dataProvider: IndexableDataProvider<R>, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask

Registers dataProvider in this SearchEngine.

Return

an object representing pending completion of the task.

Parameters

dataProvider
executor

Executor used for events dispatching. By default events are dispatched on the main thread.

callback

Callback to handle result.


open fun <R : IndexableRecord> registerDataProvider(dataProvider: IndexableDataProvider<R>, callback: CompletionCallback<Unit>): AsyncOperationTask

Registers dataProvider in this SearchEngine.

Return

an object representing pending completion of the task.

Parameters

dataProvider
callback

Callback to handle result. Events are dispatched on the main thread.