commonMain.com.huanshankeji.compose.foundation.text.input.KeyboardCapitalization.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-html-unified-common
Show all versions of compose-multiplatform-html-unified-common
Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML
The newest version!
package com.huanshankeji.compose.foundation.text.input
import androidx.compose.runtime.Stable
// copied and adapted from `androidx.compose.foundation.text.input.KeyboardCapitalization`
@kotlin.jvm.JvmInline
value class KeyboardCapitalization internal constructor(internal val value: Int) {
override fun toString(): String {
return when (this) {
None -> "None"
Characters -> "Characters"
Words -> "Words"
Sentences -> "Sentences"
else -> "Invalid"
}
}
companion object {
@Stable
val None = KeyboardCapitalization(0)
@Stable
val Characters = KeyboardCapitalization(1)
@Stable
val Words = KeyboardCapitalization(2)
@Stable
val Sentences = KeyboardCapitalization(3)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy