SnackbarLauncher

Non-suspending façade over SnackbarController.

Snackbar operations are launched in the owned CoroutineScope, making this launcher convenient for fire-and-forget usage from event handlers.

Properties

Link copied to clipboard

Visuals of the currently shown snackbar, or null if none is shown.

Link copied to clipboard

Whether a snackbar is currently being shown.

Functions

Link copied to clipboard

Dismisses the currently shown snackbar, if any.

Link copied to clipboard

Launches replacement of the currently shown snackbar with visuals.

Link copied to clipboard

Launches replacement of the currently shown snackbar with visuals created with the associated Context.

Link copied to clipboard
fun show(visuals: SnackbarVisuals)

Launches showing visuals in the associated coroutine scope.

Link copied to clipboard
fun SnackbarLauncher.show(makeSnackbar: Context.() -> SnackbarVisuals)

Launches showing snackbar visuals created with the associated Context.