SwipeToRevealSecondaryAction

Composable Component

A composable which can be used for setting the secondary action of material SwipeToRevealCard and SwipeToRevealChip.

Android
@ExperimentalWearMaterialApi
@Composable
public fun SwipeToRevealSecondaryAction(
    revealState: RevealState,
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    interactionSource: MutableInteractionSource? = null,
    content: @Composable () -> Unit,
): Unit

Parameters

revealStateThe RevealState of the SwipeToReveal where this action is used.
onClickA lambda which gets triggered when the action is clicked.
modifierModifier to be applied on the action
interactionSourceThe MutableInteractionSource representing the stream of interactions with this action.
contentThe composable which will be displayed on the action. It is recommended to keep this content as an Icon composable.