ModeratedMessageDialog

fun ModeratedMessageDialog(message: Message, onDismissRequest: () -> Unit, onDialogOptionInteraction: (message: Message, option: ModeratedMessageOption) -> Unit, modifier: Modifier = Modifier, moderatedMessageOptions: List<ModeratedMessageOption> = defaultMessageModerationOptions(), dialogTitle: @Composable () -> Unit = { DefaultModeratedMessageDialogTitle() }, dialogDescription: @Composable () -> Unit = { DefaultModeratedMessageDialogDescription() }, dialogOptions: @Composable () -> Unit = { DefaultModeratedDialogOptions( message = message, moderatedMessageOptions = moderatedMessageOptions, onDialogOptionInteraction = onDialogOptionInteraction, onDismissRequest = onDismissRequest, ) })

Dialog that is shown when user clicks or long taps on a moderated message. Gives the user the ability to either send the message again, edit it and then send it or to delete it.

Parameters

message

The moderated Message upon which the user can take action.

modifier

Modifier for styling.

moderatedMessageOptions

List of options that the user can choose from for the moderated message.

onDismissRequest

Handler for dialog dismissal.

onDialogOptionInteraction

Handler for detecting the action taken upon the dialog.

dialogTitle

Composable that represents the dialog title. Shows an icon and the cause by default.

dialogDescription

Composable that represents the dialog description. Shows more information about the cause to the user.

dialogOptions

Composable that represents the ModeratedMessageOptions the user can choose for the moderated message. By default uses defaultMessageModerationOptions.