DismissParams

data class DismissParams(val onDismissRequest: () -> Unit, val dismissButtonContentDescription: String? = null)

Data class that represent the necessary data to add an close DismissParams in a component.

Constructors

Link copied to clipboard
constructor(onDismissRequest: () -> Unit, dismissButtonContentDescription: String? = null)

Properties

Link copied to clipboard

text used by accessibility services to describe what the action represents. Use a localized string for this purpose.

Link copied to clipboard

action to be performed when the close button is clicked.