語言

InputConnectionWrapper.CommitCompletion(CompletionInfo) 方法

定義

將使用者從先前報告的可能完成中選擇的完成提交給 InputMethodSession#displayCompletions(CompletionInfo[])或 InputMethodManager#displayCompletions(View, CompletionInfo[])。

[Android.Runtime.Register("commitCompletion", "(Landroid/view/inputmethod/CompletionInfo;)Z", "GetCommitCompletion_Landroid_view_inputmethod_CompletionInfo_Handler")]
public virtual bool CommitCompletion(Android.Views.InputMethods.CompletionInfo? text);
[<Android.Runtime.Register("commitCompletion", "(Landroid/view/inputmethod/CompletionInfo;)Z", "GetCommitCompletion_Landroid_view_inputmethod_CompletionInfo_Handler")>]
abstract member CommitCompletion : Android.Views.InputMethods.CompletionInfo -> bool
override this.CommitCompletion : Android.Views.InputMethods.CompletionInfo -> bool

參數

text
CompletionInfo

承諾的完成。

傳回

目標連線回傳的值。

實作

屬性

備註

將使用者從先前報告的可能完成中選擇的完成提交給 InputMethodSession#displayCompletions(CompletionInfo[])或 InputMethodManager#displayCompletions(View, CompletionInfo[])。 這會導致使用者從實際介面選擇完成的行為。 在其他方面,其行為類似 commitText(CharSequence,int)。

Java 文件 android.view.inputmethod.InputConnectionWrapper.commitCompletion(android.view.inputmethod.CompletionInfo)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於