rememberNudgeState

fun rememberNudgeState(maxStack: Int = 3, animation: Animation = Animation.Bounce, placement: Placement = Placement.BottomEnd): NudgeState

Creates and remembers an instance of NudgeState with the specified parameters.

This function initializes the state management for nudges, including settings for stack size, animation type, and placement on the screen.

Return

A remembered instance of NudgeState.

Parameters

maxStack

The maximum number of nudges to display at once.

animation

The animation to use for displaying nudges.

placement

The placement of nudges on the screen.