← Back to Wear Material
SwipeToRevealSecondaryAction
Component
in
Wear Material
. Since 1.3.0-beta01Overview
Examples
Community Notes
A composable which can be used for setting the secondary action of material SwipeToRevealCard and SwipeToRevealChip.
@param revealState The RevealState of the SwipeToReveal where this action is used. @param onClick A lambda which gets triggered when the action is clicked. @param modifier Modifier to be applied on the action @param interactionSource The MutableInteractionSource representing the stream of interactions with this action. @param content The composable which will be displayed on the action. It is recommended to keep this content as an Icon composable.
Overloads
SwipeToRevealSecondaryAction
@OptIn(ExperimentalWearFoundationApi::class)
@ExperimentalWearMaterialApi
@Composable
public fun RevealScope.SwipeToRevealSecondaryAction(
revealState: RevealState,
onClick: () -> Unit,
modifier: Modifier = Modifier,
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
content: @Composable () -> Unit,
)
Parameters
Name | Description |
---|---|
revealState | The RevealState of the SwipeToReveal where this action is used. |
onClick | A lambda which gets triggered when the action is clicked. |
modifier | Modifier to be applied on the action |
interactionSource | The MutableInteractionSource representing the stream of interactions with this action. |
content | The composable which will be displayed on the action. It is recommended to keep this content as an Icon composable |
Previous Component← SwipeToRevealPrimaryAction
Next ComponentSwipeToRevealUndoAction →