IInputConnection.PerformEditorAction(ImeAction) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Have the editor perform an action it has said it can do.
[Android.Runtime.Register("performEditorAction", "(I)Z", "GetPerformEditorAction_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool PerformEditorAction (Android.Views.InputMethods.ImeAction editorAction);
[<Android.Runtime.Register("performEditorAction", "(I)Z", "GetPerformEditorAction_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member PerformEditorAction : Android.Views.InputMethods.ImeAction -> bool
Parameters
- editorAction
- ImeAction
This must be one of the action constants for
EditorInfo#imeOptions EditorInfo.imeOptions
, such as
EditorInfo#IME_ACTION_GO EditorInfo.EDITOR_ACTION_GO
, or the value of
EditorInfo#actionId EditorInfo.actionId
if a custom action is available.
Returns
true on success, false if the input connection is no longer valid.
- Attributes
Remarks
Have the editor perform an action it has said it can do.
This is typically used by IMEs when the user presses the key associated with the action.
Java documentation for android.view.inputmethod.InputConnection.performEditorAction(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.