Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

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

Action to dismiss a dismissible node.

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

Dismiss

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

Action to dismiss a dismissible node.

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. Add it to indicate that element is open for accepting paste data from the clipboard. The element setting this property should also set the SemanticsProperties.Focused property.

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