# ActionConstants

Artifact: [androidx.appsearch:appsearch](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/usagereporting/ActionConstants.java+class:androidx.appsearch.usagereporting.ActionConstants) Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

*** ** * ** ***


```
@ExperimentalAppSearchApi
class ActionConstants
```

<br />

*** ** * ** ***

Wrapper class for action constants.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_CLICK() = 2` Click action type. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_DISMISS() = 4` Dismiss action type. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_IMPRESSION() = 3` Impression action type. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_SEARCH() = 1` Search action type. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_UNKNOWN() = 0` Unknown action type. |

## Constants

### ACTION_TYPE_CLICK

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
const val ACTION_TYPE_CLICK = 2: Int
```

Click action type.

It is the action type for `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ClickAction`.

### ACTION_TYPE_DISMISS

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
const val ACTION_TYPE_DISMISS = 4: Int
```

Dismiss action type.

It is the action type for `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/DismissAction`.

### ACTION_TYPE_IMPRESSION

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
const val ACTION_TYPE_IMPRESSION = 3: Int
```

Impression action type.

It is the action type for `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/ImpressionAction`.

### ACTION_TYPE_SEARCH

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
const val ACTION_TYPE_SEARCH = 1: Int
```

Search action type.

It is the action type for `https://developer.android.com/reference/kotlin/androidx/appsearch/usagereporting/SearchAction`.

### ACTION_TYPE_UNKNOWN

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
const val ACTION_TYPE_UNKNOWN = 0: Int
```

Unknown action type.

It is defined for abstract action class and compatibility, so it should not be used in any concrete instances.