AppAlert

interface AppAlert

An AppAlert represents a message that should be displayed to the user to convey errors or warnings.

Inheritors

Types

Link copied to clipboard
data class Error(val error: AppError, val type: AppAlertType = AppAlertType.SNACKBAR) : AppAlert

An AppAlert.Error represents a message that should be displayed to the user to convey errors.

Link copied to clipboard
data class Text(@StringRes val text: Int, val type: AppAlertType = AppAlertType.TOAST) : AppAlert

An AppAlert.Text represents a message that should be displayed to the user to convey warnings.

Properties

Link copied to clipboard
abstract val message: String

Message of the alert

Link copied to clipboard
abstract val type: AppAlertType

Type defines how the AppAlert should be shown