Interface IRecognizerListener


public interface IRecognizerListener
The listener interface for receiving recognizer events.
Since:
2.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(@NotNull Recognizer recognizer, @NotNull RecognizerError err, @NotNull String message)
    Invoked when an error has occurred.
    void
    resultChanged(@NotNull Recognizer recognizer, @NotNull String result)
    Invoked when the content has changed.
  • Method Details

    • resultChanged

      void resultChanged(@NotNull @NotNull Recognizer recognizer, @NotNull @NotNull String result)
      Invoked when the content has changed.
      Parameters:
      recognizer - the recognizer on which the result has changed.
      result - the new result.
    • onError

      void onError(@NotNull @NotNull Recognizer recognizer, @NotNull @NotNull RecognizerError err, @NotNull @NotNull String message)
      Invoked when an error has occurred.
      Parameters:
      recognizer - the recognizer associated to block on which the error has occurred.
      err - the error code corresponding to the error.
      message - the error message.