SpellCheckerService.Session.OnGetSuggestions(TextInfo, Int32) Method

Definition

Get suggestions for specified text in TextInfo.

[Android.Runtime.Register("onGetSuggestions", "(Landroid/view/textservice/TextInfo;I)Landroid/view/textservice/SuggestionsInfo;", "GetOnGetSuggestions_Landroid_view_textservice_TextInfo_IHandler")]
public abstract Android.Views.TextService.SuggestionsInfo? OnGetSuggestions (Android.Views.TextService.TextInfo? textInfo, int suggestionsLimit);
[<Android.Runtime.Register("onGetSuggestions", "(Landroid/view/textservice/TextInfo;I)Landroid/view/textservice/SuggestionsInfo;", "GetOnGetSuggestions_Landroid_view_textservice_TextInfo_IHandler")>]
abstract member OnGetSuggestions : Android.Views.TextService.TextInfo * int -> Android.Views.TextService.SuggestionsInfo

Parameters

textInfo
TextInfo

the text metadata

suggestionsLimit
Int32

the maximum number of suggestions to be returned

Returns

SuggestionsInfo which contains suggestions for textInfo

Attributes

Remarks

Get suggestions for specified text in TextInfo. 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.onGetSuggestions(android.view.textservice.TextInfo, int).

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