PlatformTextInputService
Kotlin
|Java
interface PlatformTextInputService
androidx.compose.ui.text.input.PlatformTextInputService |
Platform specific text input service.
Summary
Public methods | |
---|---|
abstract Unit |
Hide software keyboard |
abstract Unit |
notifyFocusedRect(rect: Rect) Notify the focused rectangle to the system. |
abstract Unit |
onStateUpdated(oldValue: TextFieldValue?, newValue: TextFieldValue) |
abstract Unit |
Request showing onscreen keyboard |
abstract Unit |
startInput(value: TextFieldValue, imeOptions: ImeOptions, onEditCommand: (List<EditCommand>) -> Unit, onImeActionPerformed: (ImeAction) -> Unit) Start text input session for given client. |
abstract Unit |
Stop text input session. |
Public methods
notifyFocusedRect
abstract fun notifyFocusedRect(rect: Rect): Unit
Notify the focused rectangle to the system.
onStateUpdated
abstract fun onStateUpdated(
oldValue: TextFieldValue?,
newValue: TextFieldValue
): Unit
showSoftwareKeyboard
abstract fun showSoftwareKeyboard(): Unit
Request showing onscreen keyboard
There is no guarantee nor callback of the result of this API.
startInput
abstract fun startInput(
value: TextFieldValue,
imeOptions: ImeOptions,
onEditCommand: (List<EditCommand>) -> Unit,
onImeActionPerformed: (ImeAction) -> Unit
): Unit
Start text input session for given client.