BaseInputConnection.PerformEditorAction(ImeAction) 方法

定义

默认实现将此转换为 Enter 键。

[Android.Runtime.Register("performEditorAction", "(I)Z", "GetPerformEditorAction_IHandler")]
public virtual bool PerformEditorAction(Android.Views.InputMethods.ImeAction actionCode);
[<Android.Runtime.Register("performEditorAction", "(I)Z", "GetPerformEditorAction_IHandler")>]
abstract member PerformEditorAction : Android.Views.InputMethods.ImeAction -> bool
override this.PerformEditorAction : Android.Views.InputMethods.ImeAction -> bool

参数

actionCode
ImeAction

这必须是操作常量 ImeOptions之一,例如 Android.Views.InputMethods.EditorInfo.IME_ACTION_GO

返回

实现

属性

注解

默认实现将此转换为 Enter 键。

适用于 . 的 android.view.inputmethod.BaseInputConnection.performEditorAction(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于