Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    SupportCallback
    open class SupportCallback
    
    This class receives callbacks from the speech recognition service and forwards them to the user. An instance of this class is passed to the RecognitionService.onCheckRecognitionSupport(Intent, SupportCallback) method. Recognizers may call these methods on any thread.
    Summary
    
      
        
          | Public methods | 
        
          | open Unit | The service should call this method when an error occurred and can't satisfy the support request. | 
        
          | open Unit | The service should call this method to notify the caller about the level of support. | 
      
    
    Public methods
    
      onError
      
      open fun onError(errorCode: Int): Unit
      The service should call this method when an error occurred and can't satisfy the support request.
      
        
          
            | Parameters | 
          
            | errorCode | Int: code is defined in SpeechRecognizerValue isandroid.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, orandroid.speech.SpeechRecognizer#ERROR_CANNOT_LISTEN_TO_DOWNLOAD_EVENTS | 
        
      
     
    
      onSupportResult
      
      open fun onSupportResult(recognitionSupport: RecognitionSupport): Unit
      The service should call this method to notify the caller about the level of support.
      
     
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  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."],[],[]]