Loading docs/html/guide/topics/text/spell-checker-framework.jd +13 −10 Original line number Diff line number Diff line Loading @@ -108,20 +108,23 @@ parent.link=../browser.html?tag=article the current locale and so forth. </dd> <dt> {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int) onGetSuggestions()} {@link android.service.textservice.SpellCheckerService.Session#onGetSentenceSuggestionsMultiple(TextInfo[], int) onGetSentenceSuggestionsMultiple()} </dt> <dd> Does the actual spell checking. This method returns an object containing suggestions for the text passed to it. Does the actual spell checking. This method returns an array of {@link android.view.textservice.SentenceSuggestionsInfo} containing suggestions for the sentences passed to it. </dd> </dl> <p> Optionally, you can implement {@link android.service.textservice.SpellCheckerService.Session#onCancel()}, which handles requests to cancel spell checking, or handles requests to cancel spell checking, {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int) onGetSuggestions()}, which handles a word suggestion request, or {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean) onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or both. onGetSuggestionsMultiple()}, which handles batches of word suggestion requests. </p> <p> See the Loading Loading @@ -224,7 +227,7 @@ onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or bo The following diagram shows the flow of control for interacting with a spelling checker service: </p> <img src="{@docRoot}resources/articles/images/spellcheck_client_flow.png" alt="" height="394" id="figure3" /> height="393" id="figure3" /> <p class="img-caption"> <strong>Figure 3.</strong> Interacting with a spelling checker service. </p> Loading docs/html/resources/articles/images/spellcheck_client_flow.png −10.6 KiB (36.6 KiB) Loading image diff... docs/html/resources/articles/images/spellcheck_lifecycle.png −10 KiB (62 KiB) Loading image diff... Loading
docs/html/guide/topics/text/spell-checker-framework.jd +13 −10 Original line number Diff line number Diff line Loading @@ -108,20 +108,23 @@ parent.link=../browser.html?tag=article the current locale and so forth. </dd> <dt> {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int) onGetSuggestions()} {@link android.service.textservice.SpellCheckerService.Session#onGetSentenceSuggestionsMultiple(TextInfo[], int) onGetSentenceSuggestionsMultiple()} </dt> <dd> Does the actual spell checking. This method returns an object containing suggestions for the text passed to it. Does the actual spell checking. This method returns an array of {@link android.view.textservice.SentenceSuggestionsInfo} containing suggestions for the sentences passed to it. </dd> </dl> <p> Optionally, you can implement {@link android.service.textservice.SpellCheckerService.Session#onCancel()}, which handles requests to cancel spell checking, or handles requests to cancel spell checking, {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int) onGetSuggestions()}, which handles a word suggestion request, or {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean) onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or both. onGetSuggestionsMultiple()}, which handles batches of word suggestion requests. </p> <p> See the Loading Loading @@ -224,7 +227,7 @@ onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or bo The following diagram shows the flow of control for interacting with a spelling checker service: </p> <img src="{@docRoot}resources/articles/images/spellcheck_client_flow.png" alt="" height="394" id="figure3" /> height="393" id="figure3" /> <p class="img-caption"> <strong>Figure 3.</strong> Interacting with a spelling checker service. </p> Loading
docs/html/resources/articles/images/spellcheck_client_flow.png −10.6 KiB (36.6 KiB) Loading image diff...