success

fun NudgeState.success(title: String, description: String? = null, actions: List<NudgeButton> = emptyList(), duration: Duration = NudgeDuration.Persistent, style: Style = Style.Default)

Displays a success nudge with the specified parameters.

Parameters

title

The title of the nudge.

description

An optional description of the nudge.

actions

A list of NudgeButton actions associated with the nudge.

duration

The duration for which the nudge should be displayed.

style

The style of the nudge.