Source set: Common
public object SemanticsActions
Ths object defines keys of the actions which can be set in semantics and performed on the semantics node.
Each of these is intended to be set by the respective SemanticsPropertyReceiver extension instead of used directly. / /*@VisibleForTesting
Properties
GetTextLayoutResult
Source set: Common
public val GetTextLayoutResult:
SemanticsPropertyKey<AccessibilityAction<(MutableList<TextLayoutResult>) -> Boolean>> =
ActionPropertyKey<(MutableList<TextLayoutResult>) -> Boolean>("GetTextLayoutResult")
OnClick
Source set: Common
public val OnClick: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("OnClick")
OnLongClick
Source set: Common
public val OnLongClick: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("OnLongClick")
ScrollBy
Source set: Common
public val ScrollBy:
SemanticsPropertyKey<AccessibilityAction<(x: Float, y: Float) -> Boolean>> =
ActionPropertyKey<(x: Float, y: Float) -> Boolean>("ScrollBy")
ScrollByOffset
Source set: Common
public val ScrollByOffset: SemanticsPropertyKey<suspend (offset: Offset) -> Offset> =
SemanticsPropertyKey<suspend (offset: Offset) -> Offset>("ScrollByOffset")
ScrollToIndex
Source set: Common
public val ScrollToIndex: SemanticsPropertyKey<AccessibilityAction<(Int) -> Boolean>> =
ActionPropertyKey<(Int) -> Boolean>("ScrollToIndex")
OnAutofillText
Source set: Common
@Deprecated(
message = "Use `SemanticsActions.OnFillData` instead.",
replaceWith =
ReplaceWith("OnFillData", "androidx.compose.ui.semantics.SemanticsActions.OnFillData"),
level = DeprecationLevel.WARNING,
)
public val OnAutofillText:
SemanticsPropertyKey<AccessibilityAction<(AnnotatedString) -> Boolean>> =
ActionPropertyKey<(AnnotatedString) -> Boolean>("OnAutofillText")
OnFillData
Source set: Common
public val OnFillData: SemanticsPropertyKey<AccessibilityAction<(FillableData) -> Boolean>> =
ActionPropertyKey<(FillableData) -> Boolean>("OnFillData")
SetProgress
Source set: Common
public val SetProgress:
SemanticsPropertyKey<AccessibilityAction<(progress: Float) -> Boolean>> =
ActionPropertyKey<(progress: Float) -> Boolean>("SetProgress")
SetSelection
Source set: Common
public val SetSelection:
SemanticsPropertyKey<AccessibilityAction<(Int, Int, Boolean) -> Boolean>> =
ActionPropertyKey<(Int, Int, Boolean) -> Boolean>("SetSelection")
SetText
Source set: Common
public val SetText: SemanticsPropertyKey<AccessibilityAction<(AnnotatedString) -> Boolean>> =
ActionPropertyKey<(AnnotatedString) -> Boolean>("SetText")
SetTextSubstitution
Source set: Common
public val SetTextSubstitution:
SemanticsPropertyKey<AccessibilityAction<(AnnotatedString) -> Boolean>> =
ActionPropertyKey<(AnnotatedString) -> Boolean>("SetTextSubstitution")
ShowTextSubstitution
Source set: Common
public val ShowTextSubstitution:
SemanticsPropertyKey<AccessibilityAction<(Boolean) -> Boolean>> =
ActionPropertyKey<(Boolean) -> Boolean>("ShowTextSubstitution")
ClearTextSubstitution
Source set: Common
public val ClearTextSubstitution: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("ClearTextSubstitution")
InsertTextAtCursor
Source set: Common
public val InsertTextAtCursor:
SemanticsPropertyKey<AccessibilityAction<(AnnotatedString) -> Boolean>> =
ActionPropertyKey<(AnnotatedString) -> Boolean>("InsertTextAtCursor")
OnImeAction
Source set: Common
public val OnImeAction: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PerformImeAction")
PerformImeAction
Source set: Common
@Deprecated(
message = "Use `SemanticsActions.OnImeAction` instead.",
replaceWith =
ReplaceWith(
"OnImeAction",
"androidx.compose.ui.semantics.SemanticsActions.OnImeAction",
),
level = DeprecationLevel.ERROR,
)
/** @see SemanticsPropertyReceiver.performImeAction */
public val PerformImeAction: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PerformImeAction")
CopyText
Source set: Common
public val CopyText: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("CopyText")
CutText
Source set: Common
public val CutText: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("CutText")
PasteText
Source set: Common
public val PasteText: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PasteText")
Expand
Source set: Common
public val Expand: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("Expand")
Collapse
Source set: Common
public val Collapse: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("Collapse")
Dismiss
Source set: Common
public val Dismiss: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("Dismiss")
RequestFocus
Source set: Common
public val RequestFocus: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("RequestFocus")
CustomActions
Source set: Common
public val CustomActions: SemanticsPropertyKey<List<CustomAccessibilityAction>> =
AccessibilityKey<List<CustomAccessibilityAction>>(
name = "CustomActions",
mergePolicy = { parentValue, childValue -> parentValue.orEmpty() + childValue },
)
PageUp
Source set: Common
public val PageUp: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PageUp")
PageLeft
Source set: Common
public val PageLeft: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PageLeft")
PageDown
Source set: Common
public val PageDown: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PageDown")
PageRight
Source set: Common
public val PageRight: SemanticsPropertyKey<AccessibilityAction<() -> Boolean>> =
ActionPropertyKey<() -> Boolean>("PageRight")
GetScrollViewportLength
Source set: Common
public val GetScrollViewportLength:
SemanticsPropertyKey<AccessibilityAction<(MutableList<Float>) -> Boolean>> =
ActionPropertyKey<(MutableList<Float>) -> Boolean>("GetScrollViewportLength")