# CustomAccessibilityAction

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.CustomAccessibilityAction) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  class CustomAccessibilityAction
  ```

*** ** * ** ***

Custom accessibility action.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CustomAccessibilityAction#CustomAccessibilityAction(kotlin.String,kotlin.Function0)(label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, action: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` | 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/CustomAccessibilityAction#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/CustomAccessibilityAction#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CustomAccessibilityAction#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/CustomAccessibilityAction#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/CustomAccessibilityAction#label()` The description of this action | Cmn |

## Public constructors

### CustomAccessibilityAction

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

```
CustomAccessibilityAction(label: String, action: () -> Boolean)
```

| Parameters |
|---|---|
| `label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The description of this action |
| `action: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The function to invoke when this action is performed. The function should have no arguments and return a boolean result indicating whether the action is successfully handled. |

## 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: () -> Boolean
```

The function to invoke when this action is performed. The function should have no arguments and return a boolean result indicating whether the action is successfully handled.

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