Package-level declarations

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun ModeratedMessageDialogOptions(message: Message, options: List<ModeratedMessageOption>, modifier: Modifier = Modifier, onDismissRequest: () -> Unit = {}, onDialogOptionInteraction: (message: Message, option: ModeratedMessageOption) -> Unit = { _, _ -> }, itemContent: @Composable (ModeratedMessageOption) -> Unit = { option -> DefaultModeratedMessageOptionItem(message, option, onDismissRequest, onDialogOptionInteraction) })

Composable that represents the dialog options a user can select to act upon a moderated message.

Link copied to clipboard

Composable that represents a single option inside the ModeratedMessageDialog. By default shows only text of the action a user can perform.