Stay organized with collections
Save and categorize content based on your preferences.
SpellCheckerSessionListener
interface SpellCheckerSessionListener
Callback for getting results from text services
Summary
Public methods
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."],[],[],null,["# SpellCheckerSession.SpellCheckerSessionListener\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSpellCheckerSessionListener\n===========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/textservice/SpellCheckerSession.SpellCheckerSessionListener \"View this page in Java\") \n\n```\ninterface SpellCheckerSessionListener\n```\n\n|-------------------------------------------------------------------------------|\n| [android.view.textservice.SpellCheckerSession.SpellCheckerSessionListener](#) |\n\nCallback for getting results from text services\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGetSentenceSuggestions](#onGetSentenceSuggestions(kotlin.Array))`(`results:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[SentenceSuggestionsInfo](/reference/kotlin/android/view/textservice/SentenceSuggestionsInfo)!\u003e!`)` Callback for [SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSentenceSuggestions(kotlin.Array,%20kotlin.Int)) |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGetSuggestions](#onGetSuggestions(kotlin.Array))`(`results:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[SuggestionsInfo](/reference/kotlin/android/view/textservice/SuggestionsInfo)!\u003e!`)` Callback for [SpellCheckerSession.getSuggestions(TextInfo, int)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo,%20kotlin.Int)) and [SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSuggestions(kotlin.Array,%20kotlin.Int,%20kotlin.Boolean)) |\n\nPublic methods\n--------------\n\n### onGetSentenceSuggestions\n\nAdded in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onGetSentenceSuggestions(results: Array\u003cSentenceSuggestionsInfo!\u003e!): Unit\n```\n\nCallback for [SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSentenceSuggestions(kotlin.Array,%20kotlin.Int))\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `results` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[SentenceSuggestionsInfo](/reference/kotlin/android/view/textservice/SentenceSuggestionsInfo)!\\\u003e!: an array of [SentenceSuggestionsInfo](/reference/kotlin/android/view/textservice/SentenceSuggestionsInfo)s. These results are suggestions for [TextInfo](/reference/kotlin/android/view/textservice/TextInfo)s queried by [SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSentenceSuggestions(kotlin.Array,%20kotlin.Int)). |\n\n### onGetSuggestions\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onGetSuggestions(results: Array\u003cSuggestionsInfo!\u003e!): Unit\n```\n\nCallback for [SpellCheckerSession.getSuggestions(TextInfo, int)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo,%20kotlin.Int)) and [SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSuggestions(kotlin.Array,%20kotlin.Int,%20kotlin.Boolean))\n\n| Parameters ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `results` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[SuggestionsInfo](/reference/kotlin/android/view/textservice/SuggestionsInfo)!\\\u003e!: an array of [SuggestionsInfo](/reference/kotlin/android/view/textservice/SuggestionsInfo)s. These results are suggestions for [TextInfo](/reference/kotlin/android/view/textservice/TextInfo)s queried by [SpellCheckerSession.getSuggestions(TextInfo, int)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo,%20kotlin.Int)) or [SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)](/reference/kotlin/android/view/textservice/SpellCheckerSession#getSuggestions(kotlin.Array,%20kotlin.Int,%20kotlin.Boolean)) |"]]