Google is committed to advancing racial equity for Black communities. See how.

SemanticsActions

object SemanticsActions
kotlin.Any
   ↳ androidx.compose.ui.semantics.SemanticsActions

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

Summary

Properties
SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to copy the text to the clipboard.

SemanticsPropertyKey<List<CustomAccessibilityAction>>

Custom actions which are defined by app developers.

SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to cut the text and copy it to the clipboard.

SemanticsPropertyKey<AccessibilityAction<(MutableList<TextLayoutResult>) -> Boolean>>

Action to get a Text/TextField node's TextLayoutResult.

SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to be performed when the node is clicked.

SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to be performed when the node is long clicked.

SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to paste the text from the clipboard.

SemanticsPropertyKey<AccessibilityAction<(x: Float, y: Float) -> Boolean>>

Action to scroll to a specified position.

SemanticsPropertyKey<AccessibilityAction<(progress: Float) -> Boolean>>

Action to set slider progress.

SemanticsPropertyKey<AccessibilityAction<(Int, Int, Boolean) -> Boolean>>

Action to set selection.

SemanticsPropertyKey<AccessibilityAction<(AnnotatedString) -> Boolean>>

Action to set the text of this node.

Properties

CopyText

val CopyText: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to copy the text to the clipboard.

CustomActions

val CustomActions: SemanticsPropertyKey<List<CustomAccessibilityAction>>

Custom actions which are defined by app developers.

CutText

val CutText: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to cut the text and copy it to the clipboard.

GetTextLayoutResult

val GetTextLayoutResult: SemanticsPropertyKey<AccessibilityAction<(MutableList<TextLayoutResult>) -> Boolean>>

Action to get a Text/TextField node's TextLayoutResult. The result is the first element of layout(the argument of the AccessibilityAction).

OnClick

val OnClick: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to be performed when the node is clicked.

OnLongClick

val OnLongClick: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to be performed when the node is long clicked.

PasteText

val PasteText: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to paste the text from the clipboard.

ScrollBy

val ScrollBy: SemanticsPropertyKey<AccessibilityAction<(x: Float, y: Float) -> Boolean>>

Action to scroll to a specified position.

SetProgress

val SetProgress: SemanticsPropertyKey<AccessibilityAction<(progress: Float) -> Boolean>>

Action to set slider progress.

SetSelection

val SetSelection: SemanticsPropertyKey<AccessibilityAction<(Int, Int, Boolean) -> Boolean>>

Action to set selection. If this action is provided, the selection data must be provided using SemanticsProperties.TextSelectionRange.

SetText

val SetText: SemanticsPropertyKey<AccessibilityAction<(AnnotatedString) -> Boolean>>

Action to set the text of this node.