IndexableDataProvidersRegistry

interface IndexableDataProvidersRegistry

Experimental API, can be changed or removed in the next SDK releases.

This class allows to add and remove custom data providers to a specific scope of search engines.

Types

Callback
Link copied to clipboard
interface Callback
Interface definition for a callback to be invoked when IndexableDataProvidersRegistry operation has completed.

Functions

register
Link copied to clipboard
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.
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.
unregister
Link copied to clipboard
open fun <R : IndexableRecord> unregister(dataProvider: IndexableDataProvider<R>, callback: IndexableDataProvidersRegistry.Callback): AsyncOperationTask
Unregisters provided IndexableDataProvider from all search engines, associated with this registry.
abstract fun <R : IndexableRecord> unregister(dataProvider: IndexableDataProvider<R>, executor: Executor, callback: IndexableDataProvidersRegistry.Callback): AsyncOperationTask
Unregisters provided IndexableDataProvider from all search engines, associated with this registry.