Google berkomitmen untuk mendorong terwujudnya keadilan rasial bagi komunitas Kulit Hitam. Lihat caranya.

androidx.ui.input

Interfaces

EditOperation

A base class of all EditOperations

InputEventListener

An interface of listening IME events.

OffsetMap

The map interface used for bidirectional offset mapping from original to transformed text.

PlatformTextInputService

Platform specific text input service.

VisualTransformation

Interface used for changing visual output of the input field.

Classes

BackspaceKeyEditOp

An edit operation represents backspace keyevent

CommitTextEditOp

An edit operation represent commitText callback from InputMethod.

DeleteAllEditOp

An edit operation that represents deleting all the text in the buffer.

DeleteSurroundingTextEditOp

An edit operation represents deleteSurroundingText callback from InputMethod

DeleteSurroundingTextInCodePointsEditOp

An edit operation represents deleteSurroundingTextInCodePoitns callback from InputMethod

EditingBuffer

The editing buffer

EditorValue

Stores an input state for IME

FinishComposingTextEditOp

An edit operation represents finishComposingText callback from InputMEthod

MoveCursorEditOp

An edit operation represents cursor moving.

PasswordVisualTransformation

The Visual Filter can be used for password Input Field.

SetComposingRegionEditOp

An edit operation represents setComposingRegion callback from InputMethod.

SetComposingTextEditOp

An edit operation represents setComposingText callback from InputMethod

SetSelectionEditOp

An edit operation represents setSelection callback from InputMethod

TextFieldValue

A class holding information about the editing state.

TextInputService

Provide a communication with platform text input service.

TransformedText

The transformed text with offset offset mapping

Type-aliases

InputSessionToken

The input session token.

Enums

ImeAction

Enums used for indicating IME action.

KeyboardType

Enums used for indicating keyboard types

Top-level constants summary

const InputSessionToken

A special session token which represents the session couldn't be established.

const InputSessionToken

A special session token which represents there is no active input session.

Top-level properties summary

(PlatformTextInputService) -> TextInputService

Extension functions summary

For TextFieldValue
String

Helper function for getting text currently selected.

String

Helper function for getting text after selection range.

String

Helper function for getting text before selection range.

Top-level constants

INVALID_SESSION

const val INVALID_SESSION: InputSessionToken

A special session token which represents the session couldn't be established.

Value: -1

NO_SESSION

const val NO_SESSION: InputSessionToken

A special session token which represents there is no active input session.

Value: 0

Top-level properties

textInputServiceFactory

var textInputServiceFactory: (PlatformTextInputService) -> TextInputService

Deprecated.

Extension functions

getSelectedText

fun TextFieldValue.getSelectedText(): String

Helper function for getting text currently selected.

getTextAfterSelection

fun TextFieldValue.getTextAfterSelection(maxChars: Int): String

Helper function for getting text after selection range.

getTextBeforeSelection

fun TextFieldValue.getTextBeforeSelection(maxChars: Int): String

Helper function for getting text before selection range.