Google is committed to advancing racial equity for Black communities. See how.

KeyboardCapitalization

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

Options to request software keyboard to capitalize the text. Applies to languages which has upper-case and lower-case letters.

Summary

Enum values

Capitalize all characters.

Do not auto-capitalize text.

Capitalize the first character of each sentence.

Capitalize the first character of every word.

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

Characters

enum val Characters : KeyboardCapitalization

Capitalize all characters.

None

enum val None : KeyboardCapitalization

Do not auto-capitalize text.

Sentences

enum val Sentences : KeyboardCapitalization

Capitalize the first character of each sentence.

Words

enum val Words : KeyboardCapitalization

Capitalize the first character of every word.