# TouchBoundsExpansion

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/node/TouchBoundsExpansion.kt+class:androidx.compose.ui.node.TouchBoundsExpansion) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class TouchBoundsExpansion
  ```

*** ** * ** ***

Describes the expansion of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/PointerInputModifierNode`'s touch bounds along each edges. See `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` factories and `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#Absolute(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` for convenient ways to build `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/PointerInputModifierNode#touchBoundsExpansion()` |   |

## Summary

| ### Public companion functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#Absolute(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)(left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` that's unaware of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection`. | Cmn |

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#None()` Constant that represents no touch bounds expansion. | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#bottom()` The amount of pixels the touch bounds should be expanded along the bottom edge. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#end()` The amount of pixels the touch bounds should be expanded along the end edge. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#isLayoutDirectionAware()` Whether this `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` is aware of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` or not. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#start()` The amount of pixels the touch bounds should be expanded along the start edge. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#top()` The amount of pixels the touch bounds should be expanded along the top edge. | Cmn |

## Public companion functions

### Absolute

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

```
fun Absolute(left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0): TouchBoundsExpansion
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` that's unaware of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection`. The `left`, `top`, `right` and `bottom` represent the amount of pixels that the touch bounds is expanded along the corresponding edge. Each value must be in the range of 0 to 32767 (inclusive).

## Public companion properties

### None

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

```
val None: TouchBoundsExpansion
```

Constant that represents no touch bounds expansion.

## Public properties

### bottom

Cmn

```
val bottom: Int
```

The amount of pixels the touch bounds should be expanded along the bottom edge.

### end

Cmn

```
val end: Int
```

The amount of pixels the touch bounds should be expanded along the end edge. When `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#isLayoutDirectionAware()` is `true`, it's applied to the left edge when `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` is `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection#Ltr` and vice versa. When `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#isLayoutDirectionAware()` is `false`, it's always applied to the left edge.

### isLayoutDirectionAware

Cmn

```
val isLayoutDirectionAware: Boolean
```

Whether this `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion` is aware of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` or not. See `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#start()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#end()` for more details.

### start

Cmn

```
val start: Int
```

The amount of pixels the touch bounds should be expanded along the start edge. When `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#isLayoutDirectionAware()` is `true`, it's applied to the left edge when `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` is `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection#Ltr` and vice versa. When `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/TouchBoundsExpansion#isLayoutDirectionAware()` is `false`, it's always applied to the left edge.

### top

Cmn

```
val top: Int
```

The amount of pixels the touch bounds should be expanded along the top edge.