Object

SemanticsActions

Ths object defines keys of the actions which can be set in semantics and performed on the semantics node.

Source set: Common
/*@VisibleForTesting*/
object SemanticsActions

Ths object defines keys of the actions which can be set in semantics and performed on the semantics node.

Each of these is intended to be set by the respective SemanticsPropertyReceiver extension instead of used directly.

Properties

GetTextLayoutResult

Source set: Common
val GetTextLayoutResult =
    ActionPropertyKey<(MutableList<TextLayoutResult>) -> Boolean>("GetTextLayoutResult")

OnClick

Source set: Common
val OnClick = ActionPropertyKey<() -> Boolean>("OnClick")

OnLongClick

Source set: Common
val OnLongClick = ActionPropertyKey<() -> Boolean>("OnLongClick")

ScrollBy

Source set: Common
val ScrollBy = ActionPropertyKey<(x: Float, y: Float) -> Boolean>("ScrollBy")

ScrollByOffset

Source set: Common
val ScrollByOffset = SemanticsPropertyKey<suspend (offset: Offset) -> Offset>("ScrollByOffset")

ScrollToIndex

Source set: Common
val ScrollToIndex = ActionPropertyKey<(Int) -> Boolean>("ScrollToIndex")

OnAutofillText

Deprecated

Use SemanticsActions.OnFillData instead.

Source set: Common
val OnAutofillText = ActionPropertyKey<(AnnotatedString) -> Boolean>("OnAutofillText")

OnFillData

Source set: Common
val OnFillData = ActionPropertyKey<(FillableData) -> Boolean>("OnFillData")

SetProgress

Source set: Common
val SetProgress = ActionPropertyKey<(progress: Float) -> Boolean>("SetProgress")

SetSelection

Source set: Common
val SetSelection = ActionPropertyKey<(Int, Int, Boolean) -> Boolean>("SetSelection")

SetText

Source set: Common
val SetText = ActionPropertyKey<(AnnotatedString) -> Boolean>("SetText")

SetTextSubstitution

Source set: Common
val SetTextSubstitution = ActionPropertyKey<(AnnotatedString) -> Boolean>("SetTextSubstitution")

ShowTextSubstitution

Source set: Common
val ShowTextSubstitution = ActionPropertyKey<(Boolean) -> Boolean>("ShowTextSubstitution")

ClearTextSubstitution

Source set: Common
val ClearTextSubstitution = ActionPropertyKey<() -> Boolean>("ClearTextSubstitution")

InsertTextAtCursor

Source set: Common
val InsertTextAtCursor = ActionPropertyKey<(AnnotatedString) -> Boolean>("InsertTextAtCursor")

OnImeAction

Source set: Common
val OnImeAction = ActionPropertyKey<() -> Boolean>("PerformImeAction")

PerformImeAction

Deprecated

Use SemanticsActions.OnImeAction instead.

Source set: Common
val PerformImeAction = ActionPropertyKey<() -> Boolean>("PerformImeAction")

CopyText

Source set: Common
val CopyText = ActionPropertyKey<() -> Boolean>("CopyText")

CutText

Source set: Common
val CutText = ActionPropertyKey<() -> Boolean>("CutText")

PasteText

Source set: Common
val PasteText = ActionPropertyKey<() -> Boolean>("PasteText")

Expand

Source set: Common
val Expand = ActionPropertyKey<() -> Boolean>("Expand")

Collapse

Source set: Common
val Collapse = ActionPropertyKey<() -> Boolean>("Collapse")

Dismiss

Source set: Common
val Dismiss = ActionPropertyKey<() -> Boolean>("Dismiss")

RequestFocus

Source set: Common
val RequestFocus = ActionPropertyKey<() -> Boolean>("RequestFocus")

CustomActions

Source set: Common
val CustomActions =
    AccessibilityKey<List<CustomAccessibilityAction>>(
        name = "CustomActions",
        mergePolicy = { parentValue, childValue -> parentValue.orEmpty() + childValue },
    )

PageUp

Source set: Common
val PageUp = ActionPropertyKey<() -> Boolean>("PageUp")

PageLeft

Source set: Common
val PageLeft = ActionPropertyKey<() -> Boolean>("PageLeft")

PageDown

Source set: Common
val PageDown = ActionPropertyKey<() -> Boolean>("PageDown")
Source set: Common
val PageRight = ActionPropertyKey<() -> Boolean>("PageRight")

GetScrollViewportLength

Source set: Common
val GetScrollViewportLength =
    ActionPropertyKey<(MutableList<Float>) -> Boolean>("GetScrollViewportLength")

Last updated: