# PressInteraction.Press

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/interaction/PressInteraction.kt+class:androidx.compose.foundation.interaction.PressInteraction.Press) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0) Common/All
- Cmn

  ```
  class PressInteraction.Press : PressInteraction
  ```

*** ** * ** ***

An interaction representing a press event on a component.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/clickable.modifier#(androidx.compose.ui.Modifier).clickable(kotlin.Boolean,kotlin.String,androidx.compose.ui.semantics.Role,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/PressInteraction.Release` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/PressInteraction.Cancel` |   |

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/PressInteraction.Press#Press(androidx.compose.ui.geometry.Offset)(pressPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/PressInteraction.Press#pressPosition()` the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` describing where this press event occurred within the component. | Cmn |

## Public constructors

### Press

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

```
Press(pressPosition: Offset)
```

## Public properties

### pressPosition

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

```
val pressPosition: Offset
```

the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` describing where this press event occurred within the component. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` can be outside the actual component bounds meaning the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` can be negative or larger than the component bounds if the touch target is smaller than the `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#minimumTouchTargetSize()`.