Sdílet prostřednictvím


SpellCheckerService.Session.OnGetSuggestionsMultiple Method

Definition

A batch process of onGetSuggestions.

[Android.Runtime.Register("onGetSuggestionsMultiple", "([Landroid/view/textservice/TextInfo;IZ)[Landroid/view/textservice/SuggestionsInfo;", "GetOnGetSuggestionsMultiple_arrayLandroid_view_textservice_TextInfo_IZHandler")]
public virtual Android.Views.TextService.SuggestionsInfo[]? OnGetSuggestionsMultiple (Android.Views.TextService.TextInfo[]? textInfos, int suggestionsLimit, bool sequentialWords);
[<Android.Runtime.Register("onGetSuggestionsMultiple", "([Landroid/view/textservice/TextInfo;IZ)[Landroid/view/textservice/SuggestionsInfo;", "GetOnGetSuggestionsMultiple_arrayLandroid_view_textservice_TextInfo_IZHandler")>]
abstract member OnGetSuggestionsMultiple : Android.Views.TextService.TextInfo[] * int * bool -> Android.Views.TextService.SuggestionsInfo[]
override this.OnGetSuggestionsMultiple : Android.Views.TextService.TextInfo[] * int * bool -> Android.Views.TextService.SuggestionsInfo[]

Parameters

textInfos
TextInfo[]

an array of the text metadata

suggestionsLimit
Int32

the maximum number of suggestions to be returned

sequentialWords
Boolean

true if textInfos can be treated as sequential words.

Returns

an array of SentenceSuggestionsInfo returned by SpellCheckerService.Session#onGetSuggestions(TextInfo, int)

Attributes

Remarks

A batch process of 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.

Java documentation for android.service.textservice.SpellCheckerService.Session.onGetSuggestionsMultiple(android.view.textservice.TextInfo[], int, boolean).

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.

Applies to