Merge "Update spell checking documents Bug: 6334194" into jb-dev
This commit is contained in:
@@ -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
|
||||||
@@ -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>
|
||||||
|
|||||||
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 |
Reference in New Issue
Block a user