# DeviceAction

Artifact: [androidx.test.espresso:espresso-device](https://developer.android.com/jetpack/androidx/releases/test-espresso) [View Source](https://cs.android.com/search?q=file:androidx/test/espresso/device/action/DeviceAction.kt+class:androidx.test.espresso.device.action.DeviceAction)

*** ** * ** ***


```
public interface DeviceAction
```

<br />

*** ** * ** ***

Responsible for performing an interaction on the given device.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/test/espresso/device/action/DeviceAction#perform(androidx.test.platform.device.DeviceController)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/test/platform/device/DeviceController deviceController)` Performs this action on the given device. |

## Public methods

### perform

```
abstract void perform(@NonNull DeviceController deviceController)
```

Performs this action on the given device.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/test/platform/device/DeviceController deviceController` | the controller to use to interact with the device. |