diff options
author | satok <satok@google.com> | 2012-06-21 02:47:07 -0700 |
---|---|---|
committer | Satoshi Kataoka <satok@google.com> | 2012-07-02 15:06:05 +0900 |
commit | 0aa0734149735781978db3caad8ae2fbfebc0a79 (patch) | |
tree | 6a2cb9c7f385544267fea60c459bd7250e2713c6 /docs | |
parent | 27ad058a941e742bc519b76d3a7940f31f988f1f (diff) | |
download | frameworks_base-0aa0734149735781978db3caad8ae2fbfebc0a79.zip frameworks_base-0aa0734149735781978db3caad8ae2fbfebc0a79.tar.gz frameworks_base-0aa0734149735781978db3caad8ae2fbfebc0a79.tar.bz2 |
Update spell checking documents
Bug: 6334194
Original graffle files are
https://docs.google.com/a/google.com/open?id=0B7cspKDw7KgTcWQzckQwY2xuQTg
https://docs.google.com/a/google.com/open?id=0B7cspKDw7KgTTXJVNFdVMDlzTmM
Change-Id: I3097f770a4c71d41bb4b79336900c31cb0be0175
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/guide/topics/text/spell-checker-framework.jd | 23 | ||||
-rw-r--r-- | docs/html/resources/articles/images/spellcheck_client_flow.png | bin | 48331 -> 37464 bytes | |||
-rw-r--r-- | docs/html/resources/articles/images/spellcheck_lifecycle.png | bin | 73795 -> 63520 bytes |
3 files changed, 13 insertions, 10 deletions
diff --git a/docs/html/guide/topics/text/spell-checker-framework.jd b/docs/html/guide/topics/text/spell-checker-framework.jd index 05b6890..1c2e211 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. </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 -{@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. </p> <p> See the @@ -208,7 +211,7 @@ onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or bo <h2 id="SpellCheckClient">Accessing the Spell Checker Service from a Client</h2> <p> 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: </p> <img src="{@docRoot}resources/articles/images/textview_spellcheck_screenshot_1.png" alt="" @@ -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> @@ -233,4 +236,4 @@ onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or bo Spell Checker Client</a> 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. -</p>
\ No newline at end of file +</p> diff --git a/docs/html/resources/articles/images/spellcheck_client_flow.png b/docs/html/resources/articles/images/spellcheck_client_flow.png Binary files differindex 4e097aa..177ea81 100644 --- a/docs/html/resources/articles/images/spellcheck_client_flow.png +++ b/docs/html/resources/articles/images/spellcheck_client_flow.png diff --git a/docs/html/resources/articles/images/spellcheck_lifecycle.png b/docs/html/resources/articles/images/spellcheck_lifecycle.png Binary files differindex 0b10824..00bd461 100644 --- a/docs/html/resources/articles/images/spellcheck_lifecycle.png +++ b/docs/html/resources/articles/images/spellcheck_lifecycle.png |