register

abstract fun <R : IndexableRecord> register(dataProvider: IndexableDataProvider<R>, priority: Int, executor: Executor, callback: IndexableDataProvidersRegistry.Callback): AsyncOperationTask

Registers provided IndexableDataProvider with all search engines, associated with this registry. This operation causes search engines to attach search index, constructed from provided data provider's records. The search index can be managed via IndexableDataProviderEngineLayer instance.

Return

an object representing pending completion of the task.

See also

Parameters

dataProvider
priority

priority of registered dataProvider.

executor

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

callback

the callback to be invoked when dataProvider registering operation has completed.

open fun <R : IndexableRecord> register(dataProvider: IndexableDataProvider<R>, priority: Int, callback: IndexableDataProvidersRegistry.Callback): AsyncOperationTask

Registers provided IndexableDataProvider with all search engines, associated with this registry. This operation causes search engines to attach search index, constructed from provided data provider's records. The search index can be managed via IndexableDataProviderEngineLayer instance.

Return

an object representing pending completion of the task.

See also

Parameters

dataProvider
priority

priority of registered dataProvider.

callback

the callback to be invoked on the main thread when dataProvider registering operation has completed.