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

# TextToSpeech.OnInitListener

*** ** * ** ***

` public static interface TextToSpeech.OnInitListener `   
` `

|---|
| android.speech.tts.TextToSpeech.OnInitListener |

<br />

*** ** * ** ***

Interface definition of a callback to be invoked indicating the completion of the TextToSpeech engine initialization.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/speech/tts/TextToSpeech.OnInitListener#onInit(int)(int status) ` Called to signal the completion of the TextToSpeech engine initialization. |

## Public methods

### onInit

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

```
public abstract void onInit (int status)
```

Called to signal the completion of the TextToSpeech engine initialization.

<br />

| Parameters ||
|---|---|
| `status` | `int`: `https://developer.android.com/reference/android/speech/tts/TextToSpeech#SUCCESS` or `https://developer.android.com/reference/android/speech/tts/TextToSpeech#ERROR`. <br /> |