MeshtasticDialog

fun MeshtasticDialog(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String? = null, titleRes: ERROR CLASS: Symbol not found for StringResource?? = null, message: String? = null, messageRes: ERROR CLASS: Symbol not found for StringResource?? = null, html: String? = null, icon: ERROR CLASS: Symbol not found for ImageVector?? = null, text: () -> Unit? = null, confirmText: String? = null, confirmTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, onConfirm: () -> Unit? = null, dismissText: String? = null, dismissTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, onDismiss: () -> Unit? = null, choices: Map<String, () -> Unit> = emptyMap(), dismissable: Boolean = true)(source)

A comprehensive and flexible dialog component for the Meshtastic application.

Parameters

modifier

Modifier for the dialog.

title

The title text of the dialog.

titleRes

The title string resource of the dialog.

message

Optional plain text message.

messageRes

Optional string resource message.

html

Optional HTML formatted message.

icon

Optional leading icon.

text

Optional custom composable content for the body.

confirmText

Text for the confirmation button.

confirmTextRes

String resource for the confirmation button.

onConfirm

Callback for the confirmation button.

dismissText

Text for the dismiss button.

dismissTextRes

String resource for the dismiss button.

onDismiss

Callback for when the dialog is dismissed or the dismiss button is clicked.

choices

If provided, displays a list of buttons instead of the standard confirm/dismiss actions.

dismissable

Whether the dialog can be dismissed by clicking outside or pressing back.