value class SwipeDirection


Different values SwipeToReveal composable can reveal the actions from.

SwipeDirection is not localised, with the default being SwipeDirection.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

SwipeDirection

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

SwipeDirection

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

Public properties

Int

Public companion properties

Both

Added in 1.5.0-alpha07
val BothSwipeDirection

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-alpha07
val RightToLeftSwipeDirection

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 properties

value

Added in 1.5.0-alpha07
val valueInt