addEngineReadyCallback

abstract fun addEngineReadyCallback(executor: Executor, callback: OfflineSearchEngine.EngineReadyCallback)

Adds a callback to be notified when engine is ready. If the engine is already ready, callback will be notified immediately.

Parameters

executor

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

callback

The callback to notify when engine is ready.

open fun addEngineReadyCallback(callback: OfflineSearchEngine.EngineReadyCallback)

Adds a callback to be notified when engine is ready. If the engine is already ready, callback will be notified immediately.

Parameters

callback

The callback to notify when engine is ready. Events are dispatched on the main thread.