From 431ea84e1fde20139b748a4818c44e85a715e155 Mon Sep 17 00:00:00 2001 From: satok Date: Thu, 29 Mar 2012 18:26:33 +0900 Subject: [PATCH] Add document to SpellCheckerService Bug: 6136149 Change-Id: I93f0127878372006a240a9a34823f873bcc09927 --- .../android/service/textservice/SpellCheckerService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/java/android/service/textservice/SpellCheckerService.java b/core/java/android/service/textservice/SpellCheckerService.java index 5c97cfa25124d..53ce32daf2381 100644 --- a/core/java/android/service/textservice/SpellCheckerService.java +++ b/core/java/android/service/textservice/SpellCheckerService.java @@ -141,8 +141,12 @@ public abstract class SpellCheckerService extends Service { } /** - * The default implementation returns an array of SentenceSuggestionsInfo by simply calling - * onGetSuggestions(). + * Get sentence suggestions for specified texts in an array of TextInfo. + * The default implementation returns an array of SentenceSuggestionsInfo by simply + * calling onGetSuggestions. + * This function will run on the incoming IPC thread. + * So, this is not called on the main thread, + * but will be called in series on another thread. * When you override this method, make sure that suggestionsLimit is applied to suggestions * that share the same start position and length. * @param textInfos an array of the text metadata