RevealDirection
public value class RevealDirection private constructor(private val value: Int)
Different values SwipeToReveal
composable can reveal the actions from.
RevealDirection
is not localised, with the default being RevealDirection.RightToLeft
to
prevent conflict with the system-wide swipe to dismiss gesture in an activity, so it's strongly
advised to respect the default value to avoid conflicting gestures.
Companion Object
Properties
public val RightToLeft: RevealDirection
The default value which allows the user to swipe right to left to reveal or execute the actions. It's strongly advised to respect the default behavior to avoid conflict with the swipe-to-dismiss gesture.
public val Bidirectional: RevealDirection
The value which allows the user to swipe in either direction to reveal or execute the actions. This should not be used if the component is used in an activity as the gesture might conflict with the swipe-to-dismiss gesture and could be confusing for the users. This is only supported for rare cases where the current screen does not support swipe to dismiss.