SwipeToRevealSecondaryAction

Functions summary

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

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

Functions

SwipeToRevealSecondaryAction

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

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

Parameters
revealState: RevealState

The RevealState of the SwipeToReveal where this action is used.

onClick: () -> Unit

A lambda which gets triggered when the action is clicked.

modifier: Modifier = Modifier

Modifier to be applied on the action

interactionSource: MutableInteractionSource? = null

The MutableInteractionSource representing the stream of interactions with this action.

content: @Composable () -> Unit

The composable which will be displayed on the action. It is recommended to keep this content as an Icon composable.