register Data Provider
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
data Provider
IndexableDataProvider to register.
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
data Provider
IndexableDataProvider to register.
callback
Callback to handle result. Events are dispatched on the main thread.