Stay organized with collections
Save and categorize content based on your preferences.
TextToSpeech.OnInitListener
public
static
interface
TextToSpeech.OnInitListener
android.speech.tts.TextToSpeech.OnInitListener
|
Interface definition of a callback to be invoked indicating the completion of the
TextToSpeech engine initialization.
Summary
Public methods |
abstract
void
|
onInit(int status)
Called to signal the completion of the TextToSpeech engine initialization.
|
Public methods
onInit
public abstract void onInit (int status)
Called to signal the completion of the TextToSpeech engine initialization.
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TextToSpeech.OnInitListener\n\nAdded in [API level 4](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTextToSpeech.OnInitListener\n===========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/speech/tts/TextToSpeech.OnInitListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTextToSpeech.OnInitListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| android.speech.tts.TextToSpeech.OnInitListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition of a callback to be invoked indicating the completion of the\nTextToSpeech engine initialization.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onInit](/reference/android/speech/tts/TextToSpeech.OnInitListener#onInit(int))`(int status) ` Called to signal the completion of the TextToSpeech engine initialization. |\n\nPublic methods\n--------------\n\n### onInit\n\nAdded in [API level 4](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onInit (int status)\n```\n\nCalled to signal the completion of the TextToSpeech engine initialization.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `status` | `int`: [TextToSpeech.SUCCESS](/reference/android/speech/tts/TextToSpeech#SUCCESS) or [TextToSpeech.ERROR](/reference/android/speech/tts/TextToSpeech#ERROR). \u003cbr /\u003e |"]]