---
title: "TouchBoundsExpansion"
description: "Describes the expansion of a [PointerInputModifierNode]'s touch bounds along each edges. See
[TouchBoundsExpansion] factories and [Absolute] for convenient ways to build
[TouchBoundsExpansion]."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class TouchBoundsExpansion internal constructor(private val packedValue: Long)
```


Describes the expansion of a `PointerInputModifierNode`'s touch bounds along each edges. See
`TouchBoundsExpansion` factories and `Absolute` for convenient ways to build
`TouchBoundsExpansion`.


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val start: Int
```


The amount of pixels the touch bounds should be expanded along the start edge. When
`isLayoutDirectionAware` is `true`, it's applied to the left edge when `LayoutDirection` is
`LayoutDirection.Ltr` and vice versa. When `isLayoutDirectionAware` is `false`, it's always
applied to the left edge.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val top: Int
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val end: Int
```


The amount of pixels the touch bounds should be expanded along the end edge. When
`isLayoutDirectionAware` is `true`, it's applied to the left edge when `LayoutDirection` is
`LayoutDirection.Ltr` and vice versa. When `isLayoutDirectionAware` is `false`, it's always
applied to the left edge.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val bottom: Int
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val isLayoutDirectionAware: Boolean
```


Whether this `TouchBoundsExpansion` is aware of `LayoutDirection` or not. See `start` and
`end` for more details.



## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val None = TouchBoundsExpansion(0)
```


Constant that represents no touch bounds expansion.



#### Methods

<div class='sourceset sourceset-common'>Common</div>


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


Creates a `TouchBoundsExpansion` that's unaware of `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).





