Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f212878e authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

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

parents cc935071 0aa07341
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -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
@@ -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>
−10.6 KiB (36.6 KiB)
Loading image diff...
−10 KiB (62 KiB)
Loading image diff...