# AccessibilityAction

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/semantics/SemanticsProperties.kt+class:androidx.compose.ui.semantics.AccessibilityAction) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  class AccessibilityAction<T : () -> Boolean>
  ```

*** ** * ** ***

Standard accessibility action.

## Summary

| ### Public constructors |
|---|---|
| `<T : () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html> https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/AccessibilityAction#AccessibilityAction(kotlin.String,kotlin.Function)(label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, action: T?)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/AccessibilityAction#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/AccessibilityAction#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/AccessibilityAction#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `T?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/AccessibilityAction#action()` The function to invoke when this action is performed. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/AccessibilityAction#label()` The description of this action | Cmn |

## Public constructors

### AccessibilityAction

Cmn

```
<T : () -> Boolean> AccessibilityAction(label: String?, action: T?)
```

| Parameters |
|---|---|
| `label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The description of this action |
| `action: T?` | The function to invoke when this action is performed. The function should return a boolean result indicating whether the action is successfully handled. For example, a scroll forward action should return false if the widget is not enabled or has reached the end of the list. If multiple semantics blocks with the same AccessibilityAction are provided, the resulting AccessibilityAction's label/action will be the label/action of the outermost modifier with this key and nonnull label/action, or null if no nonnull label/action is found. |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### action

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val action: T?
```

The function to invoke when this action is performed. The function should return a boolean result indicating whether the action is successfully handled. For example, a scroll forward action should return false if the widget is not enabled or has reached the end of the list. If multiple semantics blocks with the same AccessibilityAction are provided, the resulting AccessibilityAction's label/action will be the label/action of the outermost modifier with this key and nonnull label/action, or null if no nonnull label/action is found.

### label

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val label: String?
```

The description of this action