diff --git a/docs/html/guide/topics/text/spell-checker-framework.jd b/docs/html/guide/topics/text/spell-checker-framework.jd index 05b68907bdf5c..1c2e211b58e50 100644 --- a/docs/html/guide/topics/text/spell-checker-framework.jd +++ b/docs/html/guide/topics/text/spell-checker-framework.jd @@ -108,20 +108,23 @@ parent.link=../browser.html?tag=article the current locale and so forth.
- {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int) - onGetSuggestions()} + {@link android.service.textservice.SpellCheckerService.Session#onGetSentenceSuggestionsMultiple(TextInfo[], int) + onGetSentenceSuggestionsMultiple()}
- 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.

Optionally, you can implement {@link android.service.textservice.SpellCheckerService.Session#onCancel()}, which - handles requests to cancel spell checking, or -{@link android.service.textservice.SpellCheckerService.Session#onGetSuggestionsMultiple(TextInfo[], int, boolean) -onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or both. + 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 word suggestion requests.

See the @@ -208,7 +211,7 @@ onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or bo

Accessing the Spell Checker Service from a Client

Applications that use {@link android.widget.TextView} views automatically benefit from spell - checking, because {@link android.widget.TextView} automatically uses a spelling checker. The + checking, because {@link android.widget.TextView} automatically uses a spelling checker. The following screenshots show this:

+ height="393" id="figure3" />

Figure 3. Interacting with a spelling checker service.

@@ -233,4 +236,4 @@ onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or bo Spell Checker Client sample app shows how to interact with a spelling checker service. The LatinIME input method editor in the Android Open Source Project also contains an example of spell checking. -

\ No newline at end of file +

diff --git a/docs/html/resources/articles/images/spellcheck_client_flow.png b/docs/html/resources/articles/images/spellcheck_client_flow.png index 4e097aa135331..177ea815e61ee 100644 Binary files a/docs/html/resources/articles/images/spellcheck_client_flow.png and b/docs/html/resources/articles/images/spellcheck_client_flow.png differ diff --git a/docs/html/resources/articles/images/spellcheck_lifecycle.png b/docs/html/resources/articles/images/spellcheck_lifecycle.png index 0b1082439f72c..00bd46188469b 100644 Binary files a/docs/html/resources/articles/images/spellcheck_lifecycle.png and b/docs/html/resources/articles/images/spellcheck_lifecycle.png differ