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

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

Action to scroll the content forward.

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

Action to scroll to a specified position.

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

Action to set slider progress.

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.

ScrollForward

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

Deprecated.

Action to scroll the content forward.

ScrollTo

val ScrollTo: 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.