commonMain.com.huanshankeji.compose.foundation.text.KeyboardOptions.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
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import com.huanshankeji.compose.foundation.text.input.ImeAction
import com.huanshankeji.compose.foundation.text.input.KeyboardCapitalization
import com.huanshankeji.compose.foundation.text.input.KeyboardType
import com.huanshankeji.compose.foundation.text.input.PlatformImeOptions
// copied and adapted from `androidx.compose.foundation.text.KeyboardOptions`
@Immutable
class KeyboardOptions(
val capitalization: KeyboardCapitalization? = null,
val autoCorrect: Boolean? = null,
val keyboardType: KeyboardType? = null,
val imeAction: ImeAction? = null,
val platformImeOptions: PlatformImeOptions? = null
) {
companion object {
@Stable
val Default = KeyboardOptions()
}
// `copy`, `equals`, `hashCode`, and `toString`, are removed. I am hoping to generated them with a plugin to reduce duplicate code.
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy