TouchBoundsExpansion

Function

Common
fun TouchBoundsExpansion(
    start: Int = 0,
    top: Int = 0,
    end: Int = 0,
    bottom: Int = 0,
): TouchBoundsExpansion

Creates a TouchBoundsExpansion that's aware of LayoutDirection. See TouchBoundsExpansion.start and TouchBoundsExpansion.end for more details about LayoutDirection.

The start, top, end 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).