KToastManager

Global toast dispatcher — call from anywhere in your app.

KToastManager.success("Saved!")
KToastManager.error("Upload failed", "Please try again.")
KToastManager.show("Event created", actionLabel = "Undo") { /* undo */}

Properties

Link copied to clipboard
val flow: SharedFlow<KToastData>

Functions

Link copied to clipboard
fun error(message: String, description: String? = null)
Link copied to clipboard
fun info(message: String, description: String? = null)
Link copied to clipboard
fun show(message: String, description: String? = null, type: KToastType = KToastType.Default, actionLabel: String? = null, onAction: () -> Unit? = null, durationMs: Long)
Link copied to clipboard
fun success(message: String, description: String? = null)
Link copied to clipboard
fun warning(message: String, description: String? = null)