Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/speech/RecognitionService.SupportCallback#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/speech/RecognitionService.SupportCallback#inhmethods)

# RecognitionService.SupportCallback

*** ** * ** ***

` public static class RecognitionService.SupportCallback `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.speech.RecognitionService.SupportCallback |

<br />

*** ** * ** ***

This class receives callbacks from the speech recognition service and forwards them to the user. An instance of this class is passed to the `https://developer.android.com/reference/android/speech/RecognitionService#onCheckRecognitionSupport(android.content.Intent,%20android.speech.RecognitionService.SupportCallback)` method. Recognizers may call these methods on any thread.

## Summary

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/speech/RecognitionService.SupportCallback#onError(int)(int errorCode) ` The service should call this method when an error occurred and can't satisfy the support request. |
| ` void` | ` https://developer.android.com/reference/android/speech/RecognitionService.SupportCallback#onSupportResult(android.speech.RecognitionSupport)(https://developer.android.com/reference/android/speech/RecognitionSupport recognitionSupport) ` The service should call this method to notify the caller about the level of support. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public methods

### onError

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

```
public void onError (int errorCode)
```

The service should call this method when an error occurred and can't satisfy the support request.

<br />

| Parameters ||
|---|---|
| `errorCode` | `int`: code is defined in `https://developer.android.com/reference/android/speech/SpeechRecognizer` 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 void onSupportResult (RecognitionSupport recognitionSupport)
```

The service should call this method to notify the caller about the level of support.

<br />

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