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
defines the shape of this dialog's container
the color used for the background of this dialog. Use Color.Transparent to have no color.
the content color used for the icon
the content color used for the title
the content color used for the text
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
: whether show the alert dialog
The icon of the alert dialog
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
The action to execute when the alert dialog has been dismissed
The title of the alert dialog
The text displayed in the alert dialog
The action to execute when the user dismissed the action
The style to apply to the dismiss text
The action to execute when the used confirmed the action
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
defines the shape of this dialog's container
the color used for the background of this dialog. Use Color.Transparent to have no color.
the content color used for the icon
the content color used for the title
the content color used for the text
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
typically platform specific properties to further configure the dialog
: whether show the alert dialog
The icon of the alert dialog
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
The action to execute when the alert dialog has been dismissed
The title of the alert dialog
The text displayed in the alert dialog
The action to execute when the user dismissed the action
The style to apply to the dismiss text
The action to execute when the used confirmed the action
The style to apply to the confirmation text