value class RevealDirection


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.

Summary

Public companion properties

RevealDirection

The value which allows the user to swipe in either direction to reveal or execute the actions.

RevealDirection

The default value which allows the user to swipe right to left to reveal or execute the actions.

Public companion properties

Bidirectional

Added in 1.5.0-beta01
val BidirectionalRevealDirection

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.

RightToLeft

Added in 1.5.0-beta01
val RightToLeftRevealDirection

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.