Stay organized with collections
Save and categorize content based on your preferences.
SpellCheckerSession.SpellCheckerSessionListener
public
static
interface
SpellCheckerSession.SpellCheckerSessionListener
android.view.textservice.SpellCheckerSession.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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSpellCheckerSession.SpellCheckerSessionListener\n===============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/textservice/SpellCheckerSession.SpellCheckerSessionListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSpellCheckerSession.SpellCheckerSessionListener\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------------------------------------|\n| android.view.textservice.SpellCheckerSession.SpellCheckerSessionListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback for getting results from text services\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onGetSentenceSuggestions](/reference/android/view/textservice/SpellCheckerSession.SpellCheckerSessionListener#onGetSentenceSuggestions(android.view.textservice.SentenceSuggestionsInfo[]))`(`[SentenceSuggestionsInfo[]](/reference/android/view/textservice/SentenceSuggestionsInfo)` results) ` Callback for [SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)](/reference/android/view/textservice/SpellCheckerSession#getSentenceSuggestions(android.view.textservice.TextInfo[],%20int)) |\n| ` abstract void` | ` `[onGetSuggestions](/reference/android/view/textservice/SpellCheckerSession.SpellCheckerSessionListener#onGetSuggestions(android.view.textservice.SuggestionsInfo[]))`(`[SuggestionsInfo[]](/reference/android/view/textservice/SuggestionsInfo)` results) ` Callback for [SpellCheckerSession.getSuggestions(TextInfo, int)](/reference/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo,%20int)) and [SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)](/reference/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo[],%20int,%20boolean)) |\n\nPublic methods\n--------------\n\n### onGetSentenceSuggestions\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onGetSentenceSuggestions (SentenceSuggestionsInfo[] results)\n```\n\nCallback for [SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)](/reference/android/view/textservice/SpellCheckerSession#getSentenceSuggestions(android.view.textservice.TextInfo[],%20int))\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `results` | `SentenceSuggestionsInfo`: an array of [SentenceSuggestionsInfo](/reference/android/view/textservice/SentenceSuggestionsInfo)s. These results are suggestions for [TextInfo](/reference/android/view/textservice/TextInfo)s queried by [SpellCheckerSession.getSentenceSuggestions(TextInfo[], int)](/reference/android/view/textservice/SpellCheckerSession#getSentenceSuggestions(android.view.textservice.TextInfo[],%20int)). \u003cbr /\u003e |\n\n### onGetSuggestions\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onGetSuggestions (SuggestionsInfo[] results)\n```\n\nCallback for [SpellCheckerSession.getSuggestions(TextInfo, int)](/reference/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo,%20int))\nand [SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)](/reference/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo[],%20int,%20boolean))\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `results` | `SuggestionsInfo`: an array of [SuggestionsInfo](/reference/android/view/textservice/SuggestionsInfo)s. These results are suggestions for [TextInfo](/reference/android/view/textservice/TextInfo)s queried by [SpellCheckerSession.getSuggestions(TextInfo, int)](/reference/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo,%20int)) or [SpellCheckerSession.getSuggestions(TextInfo[], int, boolean)](/reference/android/view/textservice/SpellCheckerSession#getSuggestions(android.view.textservice.TextInfo[],%20int,%20boolean)) \u003cbr /\u003e |"]]