SemanticsActions

object SemanticsActions
kotlin.Any
   ↳ androidx.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<() -> Boolean>>

Action to be performed when the node is clicked.

SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to scroll the content backward.

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

Action to scroll to a specified position.

SemanticsPropertyKey<AccessibilityAction<() -> Boolean>>

Action to scroll the content forward.

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.

OnClick

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

Action to be performed when the node is clicked.

ScrollBackward

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

Deprecated.

Action to scroll the content backward.

ScrollBy

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

Action to scroll to a specified position.

ScrollForward

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

Deprecated.

Action to scroll the content forward.

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.