SnackBarComponentConfiguration
Configuration data for displaying a Snackbar, encapsulating the message string resource, optional action label, display duration, and a semantic type that drives the snackbar color.
The message is carried as a StringRes id (plus optional messageArgs format arguments) rather than a resolved string so that all snackbar copy is localizable and lives in strings.xml. It is resolved to a display string at the UI layer (see SharedFlow.hookSnackBar), which has a android.content.Context. Passed in-memory via kotlinx.coroutines.flow.SharedFlow — no serialization needed.
Constructors
Properties
Optional label for the snackbar action button; null means no action.
Format arguments for messageResId when it contains placeholders (e.g. %1$s).
String resource id for the snackbar body; 0 means "no message" (skipped).
The semantic type driving the snackbar color; defaults to SnackBarType.INFO.