InputConnectionWrapper.CommitCompletion(CompletionInfo) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提交用户从以前向 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[]] 报告的可能项)中选择的完成。 这将导致与用户从实际 UI 中选择完成一样的行为。 在所有其他方面,这的行为类似于 commitText(CharSequence,int)。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。