🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

RevealActionType

Different values which can trigger the state change from one RevealValue to another.

Source set: Android
@Deprecated(
    message =
        "The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library."
)
public class RevealActionType private constructor(public val value: Int)

Different values which can trigger the state change from one RevealValue to another. These are not set by themselves and need to be set appropriately with RevealState.snapTo and RevealState.animateTo.

Members

Companion

Source set: Android
public companion object

Properties

PrimaryAction

Source set: Android
public val PrimaryAction: RevealActionType = RevealActionType(0)

Represents the primary action composable of SwipeToReveal. This corresponds to the mandatory primaryAction parameter of SwipeToReveal.

SecondaryAction

Source set: Android
public val SecondaryAction: RevealActionType = RevealActionType(1)

Represents the secondary action composable of SwipeToReveal. This corresponds to the optional secondaryAction composable of SwipeToReveal.

UndoAction

Source set: Android
public val UndoAction: RevealActionType = RevealActionType(2)

Represents the undo action composable of SwipeToReveal. This corresponds to the undoAction composable of SwipeToReveal which is shown once an action is performed.

None

Source set: Android
public val None: RevealActionType = RevealActionType(-1)

Default value when none of the above are applicable.