InitializerListener interface

ru.yandex.speechkit

public interface InitializerListener 

The interface defines the listener callbacks that are called by the initializer. (Initializer).

These callback methods are called during the initializer's lifecycle. The listener will be notified when the initialization process starts and finishes (successfully or with an error).

Methods

voidonError(Initializer initializer, Error error)

Called when the initialization process finished with an error (Error).

voidonInitializerBegin(Initializer initializer)

Called when the initialization process started.

voidonInitializerDone(Initializer initializer)

Called when the initialization completes successfully.

Method descriptions

onError

public void onError (Initializer initializer, Error error)

Called when the initialization process finished with an error (Error).

Parameters:
error

Error that occurred during initialization.

onInitializerBegin

public void onInitializerBegin (Initializer initializer)

Called when the initialization process started.

onInitializerDone

public void onInitializerDone (Initializer initializer)

Called when the initialization completes successfully.