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

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<List<CustomAccessibilityAction>>

Custom actions which are defined by app developers.

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<(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

CustomActions

val CustomActions: SemanticsPropertyKey<List<CustomAccessibilityAction>>

Custom actions which are defined by app developers.

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.

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.