Stay organized with collections
Save and categorize content based on your preferences.
RecognitionSupportCallback
interface RecognitionSupportCallback
Used for receiving notifications from the SpeechRecognizer about the device support status for the given recognition request.
Summary
Public methods |
abstract Unit |
Notifies the caller about an error during the recognition support request
|
abstract Unit |
Notifies the caller about the support for the given request.
|
Public methods
onError
abstract fun onError(error: Int): Unit
Notifies the caller about an error during the recognition support request
Parameters |
error |
Int: Value is android.speech.SpeechRecognizer#ERROR_NETWORK_TIMEOUT , android.speech.SpeechRecognizer#ERROR_NETWORK , android.speech.SpeechRecognizer#ERROR_AUDIO , android.speech.SpeechRecognizer#ERROR_SERVER , android.speech.SpeechRecognizer#ERROR_CLIENT , android.speech.SpeechRecognizer#ERROR_SPEECH_TIMEOUT , android.speech.SpeechRecognizer#ERROR_NO_MATCH , android.speech.SpeechRecognizer#ERROR_RECOGNIZER_BUSY , android.speech.SpeechRecognizer#ERROR_INSUFFICIENT_PERMISSIONS , android.speech.SpeechRecognizer#ERROR_TOO_MANY_REQUESTS , android.speech.SpeechRecognizer#ERROR_SERVER_DISCONNECTED , android.speech.SpeechRecognizer#ERROR_LANGUAGE_NOT_SUPPORTED , android.speech.SpeechRecognizer#ERROR_LANGUAGE_UNAVAILABLE , android.speech.SpeechRecognizer#ERROR_CANNOT_CHECK_SUPPORT , or android.speech.SpeechRecognizer#ERROR_CANNOT_LISTEN_TO_DOWNLOAD_EVENTS |
onSupportResult
abstract fun onSupportResult(recognitionSupport: RecognitionSupport): Unit
Notifies the caller about the support for the given request.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]