EquinoxAlertDialog

fun EquinoxAlertDialog(    modifier: Modifier = Modifier,     shape: Shape = AlertDialogDefaults.shape,     containerColor: Color = AlertDialogDefaults.containerColor,     iconContentColor: Color = AlertDialogDefaults.iconContentColor,     titleContentColor: Color = AlertDialogDefaults.titleContentColor,     textContentColor: Color = AlertDialogDefaults.textContentColor,     tonalElevation: Dp = AlertDialogDefaults.TonalElevation,     properties: DialogProperties = DialogProperties(),     titleModifier: Modifier = Modifier,     titleStyle: TextStyle = TextStyle.Default,     show: MutableState<Boolean>,     icon: ImageVector? = null,     viewModel: EquinoxViewModel? = null,     onDismissAction: () -> Unit = { show.value = false viewModel?.restartRetriever() },     title: StringResource,     text: StringResource,     dismissAction: () -> Unit = onDismissAction,     dismissText: StringResource? = Res.string.dismiss,     dismissTextStyle: TextStyle = TextStyle.Default,     confirmAction: () -> Unit,     confirmText: StringResource = Res.string.confirm,     confirmTextStyle: TextStyle = TextStyle.Default)
fun EquinoxAlertDialog(    modifier: Modifier = Modifier,     shape: Shape = AlertDialogDefaults.shape,     containerColor: Color = AlertDialogDefaults.containerColor,     iconContentColor: Color = AlertDialogDefaults.iconContentColor,     titleContentColor: Color = AlertDialogDefaults.titleContentColor,     textContentColor: Color = AlertDialogDefaults.textContentColor,     tonalElevation: Dp = AlertDialogDefaults.TonalElevation,     properties: DialogProperties = DialogProperties(),     titleModifier: Modifier = Modifier,     titleStyle: TextStyle = TextStyle.Default,     show: MutableState<Boolean>,     icon: ImageVector? = null,     viewModel: EquinoxViewModel? = null,     onDismissAction: () -> Unit = { show.value = false viewModel?.restartRetriever() },     title: String,     text: String,     dismissAction: () -> Unit = onDismissAction,     dismissText: String?,     dismissTextStyle: TextStyle = TextStyle.Default,     confirmAction: () -> Unit,     confirmText: String,     confirmTextStyle: TextStyle = TextStyle.Default)
fun EquinoxAlertDialog(    modifier: Modifier = Modifier,     shape: Shape = AlertDialogDefaults.shape,     containerColor: Color = AlertDialogDefaults.containerColor,     iconContentColor: Color = AlertDialogDefaults.iconContentColor,     titleContentColor: Color = AlertDialogDefaults.titleContentColor,     textContentColor: Color = AlertDialogDefaults.textContentColor,     tonalElevation: Dp = AlertDialogDefaults.TonalElevation,     properties: DialogProperties = DialogProperties(),     titleModifier: Modifier = Modifier,     titleStyle: TextStyle = TextStyle.Default,     show: MutableState<Boolean>,     icon: ImageVector? = null,     viewModel: EquinoxViewModel? = null,     onDismissAction: () -> Unit = { show.value = false viewModel?.restartRetriever() },     title: StringResource,     text: @Composable () -> Unit,     dismissAction: () -> Unit = onDismissAction,     dismissText: StringResource? = Res.string.dismiss,     dismissTextStyle: TextStyle = TextStyle.Default,     confirmAction: () -> Unit,     confirmText: StringResource = Res.string.confirm,     confirmTextStyle: TextStyle = TextStyle.Default)

Method used to display a custom AlertDialog

Parameters

modifier

The modifier to apply to the AlertDialog

shape

defines the shape of this dialog's container

containerColor

the color used for the background of this dialog. Use Color.Transparent to have no color.

iconContentColor

the content color used for the icon

titleContentColor

the content color used for the title

textContentColor

the content color used for the text

tonalElevation

when containerColor is ColorScheme.surface, a translucent primary color overlay is applied on top of the container. A higher tonal elevation value will result in a darker color in light theme and lighter color in dark theme. See also: Surface

titleModifier

The modifier to apply to the title of the AlertDialog

titleStyle

The style to apply to the title of the AlertDialog

show

: whether show the alert dialog

icon

The icon of the alert dialog

viewModel

The viewmodel, if available, used in the context where the AlertDialog has been invoked, passing it allows to manage in automatically the refresher, so suspend it or restarting it

onDismissAction

The action to execute when the alert dialog has been dismissed

title

The title of the alert dialog

text

The text displayed in the alert dialog

dismissAction

The action to execute when the user dismissed the action

dismissText

The text of the dismiss TextButton

dismissTextStyle

The style to apply to the dismiss text

confirmAction

The action to execute when the used confirmed the action

confirmText

The text of the confirm TextButton

confirmTextStyle

The style to apply to the confirmation text


fun EquinoxAlertDialog(    modifier: Modifier = Modifier,     shape: Shape = AlertDialogDefaults.shape,     containerColor: Color = AlertDialogDefaults.containerColor,     iconContentColor: Color = AlertDialogDefaults.iconContentColor,     titleContentColor: Color = AlertDialogDefaults.titleContentColor,     textContentColor: Color = AlertDialogDefaults.textContentColor,     tonalElevation: Dp = AlertDialogDefaults.TonalElevation,     properties: DialogProperties = DialogProperties(),     titleModifier: Modifier = Modifier,     titleStyle: TextStyle = TextStyle.Default,     show: MutableState<Boolean>,     icon: ImageVector? = null,     viewModel: EquinoxViewModel? = null,     onDismissAction: () -> Unit = { show.value = false viewModel?.restartRetriever() },     title: String,     text: @Composable () -> Unit,     dismissAction: () -> Unit = onDismissAction,     dismissText: String?,     dismissTextStyle: TextStyle = TextStyle.Default,     confirmAction: () -> Unit,     confirmText: String,     confirmTextStyle: TextStyle = TextStyle.Default)

Method used to display a custom AlertDialog

Parameters

modifier

The modifier to apply to the AlertDialog

shape

defines the shape of this dialog's container

containerColor

the color used for the background of this dialog. Use Color.Transparent to have no color.

iconContentColor

the content color used for the icon

titleContentColor

the content color used for the title

textContentColor

the content color used for the text

tonalElevation

when containerColor is ColorScheme.surface, a translucent primary color overlay is applied on top of the container. A higher tonal elevation value will result in a darker color in light theme and lighter color in dark theme. See also: Surface

properties

typically platform specific properties to further configure the dialog

titleModifier

The modifier to apply to the title of the AlertDialog

titleStyle

The style to apply to the title of the AlertDialog

show

: whether show the alert dialog

icon

The icon of the alert dialog

viewModel

The viewmodel, if available, used in the context where the AlertDialog has been invoked, passing it allows to manage in automatically the refresher, so suspend it or restarting it

onDismissAction

The action to execute when the alert dialog has been dismissed

title

The title of the alert dialog

text

The text displayed in the alert dialog

dismissAction

The action to execute when the user dismissed the action

dismissText

The text of the dismiss TextButton

dismissTextStyle

The style to apply to the dismiss text

confirmAction

The action to execute when the used confirmed the action

confirmText

The text of the confirm TextButton

confirmTextStyle

The style to apply to the confirmation text