[android-components](../../index.md) / [mozilla.components.browser.tabstray](../index.md) / [TabTouchCallback](index.md) / [alphaForItemSwipe](./alpha-for-item-swipe.md)

# alphaForItemSwipe

`open fun alphaForItemSwipe(dX: `[`Float`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, distanceToAlphaMin: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Float`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/tabstray/src/main/java/mozilla/components/browser/tabstray/TabTouchCallback.kt#L47)

Sets the alpha value for a swipe gesture. This is useful for inherited classes to provide their own values.

