AlertManager

A global manager for displaying alerts across the application. This allows ViewModels to trigger alerts without direct dependencies on UI components.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class AlertData(val title: String? = null, val titleRes: ERROR CLASS: Symbol not found for StringResource?? = null, val message: String? = null, val messageRes: ERROR CLASS: Symbol not found for StringResource?? = null, val composableMessage: ComposableContent? = null, val html: String? = null, val icon: ERROR CLASS: Symbol not found for ImageVector?? = null, val onConfirm: () -> Unit? = null, val onDismiss: () -> Unit? = null, val confirmText: String? = null, val confirmTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, val dismissText: String? = null, val dismissTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, val choices: Map<String, () -> Unit> = emptyMap(), val dismissable: Boolean = true)

Properties

Link copied to clipboard
val currentAlert: ERROR CLASS: Unresolved name: asStateFlow

Functions

Link copied to clipboard
Link copied to clipboard
fun showAlert(title: String? = null, titleRes: ERROR CLASS: Symbol not found for StringResource?? = null, message: String? = null, messageRes: ERROR CLASS: Symbol not found for StringResource?? = null, composableMessage: ComposableContent? = null, html: String? = null, icon: ERROR CLASS: Symbol not found for ImageVector?? = null, onConfirm: () -> Unit? = {}, onDismiss: () -> Unit? = null, confirmText: String? = null, confirmTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, dismissText: String? = null, dismissTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, choices: Map<String, () -> Unit> = emptyMap(), dismissable: Boolean = true)