# 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
public final class ActionConstants
```

<br />

*** ** * ** ***

Wrapper class for action constants.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_CLICK() = 2` Click action type. |
| `static final int` | `https://developer.android.com/reference/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_DISMISS() = 4` Dismiss action type. |
| `static final int` | `https://developer.android.com/reference/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_IMPRESSION() = 3` Impression action type. |
| `static final int` | `https://developer.android.com/reference/androidx/appsearch/usagereporting/ActionConstants#ACTION_TYPE_SEARCH() = 1` Search action type. |
| `static final int` | `https://developer.android.com/reference/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)

```
public static final int ACTION_TYPE_CLICK = 2
```

Click action type.

It is the action type for `https://developer.android.com/reference/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)

```
public static final int ACTION_TYPE_DISMISS = 4
```

Dismiss action type.

It is the action type for `https://developer.android.com/reference/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)

```
public static final int ACTION_TYPE_IMPRESSION = 3
```

Impression action type.

It is the action type for `https://developer.android.com/reference/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)

```
public static final int ACTION_TYPE_SEARCH = 1
```

Search action type.

It is the action type for `https://developer.android.com/reference/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)

```
public static final int ACTION_TYPE_UNKNOWN = 0
```

Unknown action type.

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