register Data Provider
abstract fun <R : IndexableRecord> registerDataProvider(dataProvider: IndexableDataProvider<R>, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask
Content copied to clipboard
Registers dataProvider in this SearchEngine.
Return
an object representing pending completion of the task.
Parameters
dataProvider
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
Content copied to clipboard
Registers dataProvider in this SearchEngine.
Return
an object representing pending completion of the task.
Parameters
dataProvider
IndexableDataProvider to register.
callback
Callback to handle result. Events are dispatched on the main thread.