Android 12 Developer Preview is here! Try it out, and give us your feedback!

ImeAction

enum class ImeAction
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.ui.text.input.ImeAction>
   ↳ androidx.compose.ui.text.input.ImeAction

Signals the keyboard what type of action should be displayed. It is not guaranteed if the keyboard will show the requested action.

Summary

Enum values

Use the platform and keyboard defaults and let the keyboard to decide the action.

Represents that the user is done providing input to a group of inputs.

Represents that the user would like to go to the target of the text in the input i.

Represents that the user is done with the current input, and wants to move to the next one i.

Represents that no action is expected from the keyboard.

Represents that the user wants to return to the previous input i.

Represents that the user wants to execute a search, i.

Represents that the user wants to send the text in the input, i.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

Default

enum val Default : ImeAction

Use the platform and keyboard defaults and let the keyboard to decide the action. The keyboards will mostly show one of Done or None actions based on the single/multi line configuration.

Done

enum val Done : ImeAction

Represents that the user is done providing input to a group of inputs. Some kind of finalization behavior should now take place i.e. the field was the last element in a group and the data input is finalized.

Go

enum val Go : ImeAction

Represents that the user would like to go to the target of the text in the input i.e. visiting a URL.

Next

enum val Next : ImeAction

Represents that the user is done with the current input, and wants to move to the next one i.e. moving to the next field in a form.

None

enum val None : ImeAction

Represents that no action is expected from the keyboard. Keyboard might choose to show an action which mostly will be newline, however this action is not carried into the app via any Keyboard Action.

Previous

enum val Previous : ImeAction

Represents that the user wants to return to the previous input i.e. going back to the previous field in a form.

enum val Search : ImeAction

Represents that the user wants to execute a search, i.e web search query.

Send

enum val Send : ImeAction

Represents that the user wants to send the text in the input, i.e an SMS.