Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# RecognitionSupportCallback

*** ** * ** ***

` public interface RecognitionSupportCallback `   
` `

|---|
| android.speech.RecognitionSupportCallback |

<br />

*** ** * ** ***

Used for receiving notifications from the SpeechRecognizer about the device support status for the given recognition request.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/speech/RecognitionSupportCallback#onError(int)(int error) ` Notifies the caller about an error during the recognition support request |
| ` abstract void` | ` https://developer.android.com/reference/android/speech/RecognitionSupportCallback#onSupportResult(android.speech.RecognitionSupport)(https://developer.android.com/reference/android/speech/RecognitionSupport recognitionSupport) ` Notifies the caller about the support for the given request. |

## Public methods

### onError

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onError (int error)
```

Notifies the caller about an error during the recognition support request

<br />

| Parameters ||
|---|---|
| `error` | `int`: Value is one of the following: - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_NETWORK_TIMEOUT` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_NETWORK` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_AUDIO` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_SERVER` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_CLIENT` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_SPEECH_TIMEOUT` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_NO_MATCH` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_RECOGNIZER_BUSY` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_INSUFFICIENT_PERMISSIONS` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_TOO_MANY_REQUESTS` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_SERVER_DISCONNECTED` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_LANGUAGE_NOT_SUPPORTED` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_LANGUAGE_UNAVAILABLE` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_CANNOT_CHECK_SUPPORT` - `https://developer.android.com/reference/android/speech/SpeechRecognizer#ERROR_CANNOT_LISTEN_TO_DOWNLOAD_EVENTS` |

### onSupportResult

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onSupportResult (RecognitionSupport recognitionSupport)
```

Notifies the caller about the support for the given request.

<br />

| Parameters ||
|---|---|
| `recognitionSupport` | `RecognitionSupport`: This value cannot be `null`. <br /> |