EngineReadyCallback

interface EngineReadyCallback

Interface definition for a callback to be invoked when the OfflineSearchEngine is ready for use. With the current implementation the callback is invoked when previously downloaded offline data has been prepared and available for search.

If the callback returns an error, you can continue to use OfflineSearchEngine functions, but previously downloaded offline data won't be available for search.

Functions

onEngineReady
Link copied to clipboard
abstract fun onEngineReady()
Called when the engine is ready for use.
onError
Link copied to clipboard
abstract fun onError(e: Exception)
Called if an error occurred.