TextView.OnEditorAction(ImeAction) Method

Definition

Called when an attached input method calls InputConnection#performEditorAction(int) InputConnection.performEditorAction() for this text view.

[Android.Runtime.Register("onEditorAction", "(I)V", "GetOnEditorAction_IHandler")]
public virtual void OnEditorAction (Android.Views.InputMethods.ImeAction actionCode);
[<Android.Runtime.Register("onEditorAction", "(I)V", "GetOnEditorAction_IHandler")>]
abstract member OnEditorAction : Android.Views.InputMethods.ImeAction -> unit
override this.OnEditorAction : Android.Views.InputMethods.ImeAction -> unit

Parameters

actionCode
ImeAction

The code of the action being performed.

Attributes

Remarks

Called when an attached input method calls InputConnection#performEditorAction(int) InputConnection.performEditorAction() for this text view. The default implementation will call your action listener supplied to #setOnEditorActionListener, or perform a standard operation for EditorInfo#IME_ACTION_NEXT EditorInfo.IME_ACTION_NEXT, EditorInfo#IME_ACTION_PREVIOUS EditorInfo.IME_ACTION_PREVIOUS, or EditorInfo#IME_ACTION_DONE EditorInfo.IME_ACTION_DONE.

For backwards compatibility, if no IME options have been set and the text view would not normally advance focus on enter, then the NEXT and DONE actions received here will be turned into an enter key down/up pair to go through the normal key handling.

Java documentation for android.widget.TextView.onEditorAction(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

See also

  • <xref:Android.Widget.TextView.SetOnEditorActionListener(.IOnEditorActionListener)>