Merge "Update spell checking documents Bug: 6334194" into jb-dev

This commit is contained in:
satok
2012-07-02 18:27:08 -07:00
committed by Android (Google) Code Review
3 changed files with 13 additions and 10 deletions

View File

@@ -108,20 +108,23 @@ parent.link=../browser.html?tag=article
the current locale and so forth. the current locale and so forth.
</dd> </dd>
<dt> <dt>
{@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int) {@link android.service.textservice.SpellCheckerService.Session#onGetSentenceSuggestionsMultiple(TextInfo[], int)
onGetSuggestions()} onGetSentenceSuggestionsMultiple()}
</dt> </dt>
<dd> <dd>
Does the actual spell checking. This method returns an object containing Does the actual spell checking. This method returns an array of
suggestions for the text passed to it. {@link android.view.textservice.SentenceSuggestionsInfo} containing
suggestions for the sentences passed to it.
</dd> </dd>
</dl> </dl>
<p> <p>
Optionally, you can implement Optionally, you can implement
{@link android.service.textservice.SpellCheckerService.Session#onCancel()}, which {@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#onGetSuggestionsMultiple(TextInfo[], int, boolean) {@link android.service.textservice.SpellCheckerService.Session#onGetSuggestions(TextInfo, int)
onGetSuggestionsMultiple()}, which handles batches of suggestion requests, or both. 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>
<p> <p>
See the 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> <h2 id="SpellCheckClient">Accessing the Spell Checker Service from a Client</h2>
<p> <p>
Applications that use {@link android.widget.TextView} views automatically benefit from spell 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: following screenshots show this:
</p> </p>
<img src="{@docRoot}resources/articles/images/textview_spellcheck_screenshot_1.png" alt="" <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: The following diagram shows the flow of control for interacting with a spelling checker service:
</p> </p>
<img src="{@docRoot}resources/articles/images/spellcheck_client_flow.png" alt="" <img src="{@docRoot}resources/articles/images/spellcheck_client_flow.png" alt=""
height="394" id="figure3" /> height="393" id="figure3" />
<p class="img-caption"> <p class="img-caption">
<strong>Figure 3.</strong> Interacting with a spelling checker service. <strong>Figure 3.</strong> Interacting with a spelling checker service.
</p> </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 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 LatinIME input method editor in the Android Open Source Project also contains an example of
spell checking. spell checking.
</p> </p>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 62 KiB