Share via


InputMethodService.GetTextForImeAction(ImeAction) Method

Definition

Return text that can be used as a button label for the given EditorInfo#imeOptions EditorInfo.imeOptions.

public string? GetTextForImeAction (Android.Views.InputMethods.ImeAction imeOptions);
member this.GetTextForImeAction : Android.Views.InputMethods.ImeAction -> string

Parameters

imeOptions
ImeAction

The value from EditorInfo#imeOptions EditorInfo.imeOptions.

Returns

Returns a label to use, or null if there is no action.

Remarks

Return text that can be used as a button label for the given EditorInfo#imeOptions EditorInfo.imeOptions. Returns null if there is no action requested. Note that there is no guarantee that the returned text will be relatively short, so you probably do not want to use it as text on a soft keyboard key label.

Java documentation for android.inputmethodservice.InputMethodService.getTextForImeAction(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