SpellCheckerService.Session.OnGetSentenceSuggestionsMultiple Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get sentence suggestions for specified texts in an array of TextInfo.
[Android.Runtime.Register("onGetSentenceSuggestionsMultiple", "([Landroid/view/textservice/TextInfo;I)[Landroid/view/textservice/SentenceSuggestionsInfo;", "GetOnGetSentenceSuggestionsMultiple_arrayLandroid_view_textservice_TextInfo_IHandler")]
public virtual Android.Views.TextService.SentenceSuggestionsInfo[]? OnGetSentenceSuggestionsMultiple (Android.Views.TextService.TextInfo[]? textInfos, int suggestionsLimit);
[<Android.Runtime.Register("onGetSentenceSuggestionsMultiple", "([Landroid/view/textservice/TextInfo;I)[Landroid/view/textservice/SentenceSuggestionsInfo;", "GetOnGetSentenceSuggestionsMultiple_arrayLandroid_view_textservice_TextInfo_IHandler")>]
abstract member OnGetSentenceSuggestionsMultiple : Android.Views.TextService.TextInfo[] * int -> Android.Views.TextService.SentenceSuggestionsInfo[]
override this.OnGetSentenceSuggestionsMultiple : Android.Views.TextService.TextInfo[] * int -> Android.Views.TextService.SentenceSuggestionsInfo[]
Parameters
- textInfos
- TextInfo[]
an array of the text metadata
- suggestionsLimit
- Int32
the maximum number of suggestions to be returned
Returns
an array of SentenceSuggestionsInfo
returned by
SpellCheckerService.Session#onGetSuggestions(TextInfo, int)
- Attributes
Remarks
Get sentence suggestions for specified texts in an array of TextInfo. The default implementation splits the input text to words and returns SentenceSuggestionsInfo
which contains suggestions for each word. 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.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.