Share via


InputMethodService.GetTextForImeActionFormatted(ImeAction) Method

Definition

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

[Android.Runtime.Register("getTextForImeAction", "(I)Ljava/lang/CharSequence;", "GetGetTextForImeAction_IHandler")]
public virtual Java.Lang.ICharSequence? GetTextForImeActionFormatted (Android.Views.InputMethods.ImeAction imeOptions);
[<Android.Runtime.Register("getTextForImeAction", "(I)Ljava/lang/CharSequence;", "GetGetTextForImeAction_IHandler")>]
abstract member GetTextForImeActionFormatted : Android.Views.InputMethods.ImeAction -> Java.Lang.ICharSequence
override this.GetTextForImeActionFormatted : Android.Views.InputMethods.ImeAction -> Java.Lang.ICharSequence

Parameters

imeOptions
ImeAction

The value from EditorInfo#imeOptions EditorInfo.imeOptions.

Returns

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

Attributes

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