Merge "Add a comment mentioning that errors might be unbundled, to improve backwards compatibility story." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-20 15:29:12 +00:00
committed by Android (Google) Code Review

View File

@@ -62,7 +62,8 @@ public interface RecognitionListener {
/**
* A network or recognition error occurred.
*
* @param error code is defined in {@link SpeechRecognizer}
* @param error code is defined in {@link SpeechRecognizer}. Implementations need to handle any
* integer error constant to be passed here beyond constants prefixed with ERROR_.
*/
void onError(@SpeechRecognizer.RecognitionError int error);