AlertComponentOptions

data class AlertComponentOptions(val isVisible: Boolean = false, val message: String = "", val type: AlertType = AlertType.SUCCESS, val duration: Long = 3000, val textColor: Int = 0xFF000000.toInt(), val onHide: () -> Unit? = null)

AlertComponent - Displays alert messages with auto-hide functionality.

This component shows success/error messages with customizable colors and duration. It automatically hides after the specified duration or can be dismissed by tap.

Constructors

Link copied to clipboard
constructor(isVisible: Boolean = false, message: String = "", type: AlertType = AlertType.SUCCESS, duration: Long = 3000, textColor: Int = 0xFF000000.toInt(), onHide: () -> Unit? = null)

Properties

Link copied to clipboard
val duration: Long = 3000
Link copied to clipboard
val isVisible: Boolean = false
Link copied to clipboard
Link copied to clipboard
val onHide: () -> Unit? = null
Link copied to clipboard
Link copied to clipboard