Package-level declarations
Functions
Link copied to clipboard
fun PollAnswersDialog(selectedPoll: SelectedPoll, listViewModel: MessageListViewModel, onDismissRequest: () -> Unit, onBackPressed: () -> Unit)
Link copied to clipboard
fun PollDialogHeader(title: String, onBackPressed: () -> Unit, trailingContent: @Composable () -> Unit = {})
Link copied to clipboard
fun PollMoreOptionsDialog(selectedPoll: SelectedPoll, listViewModel: MessageListViewModel, onDismissRequest: () -> Unit, onBackPressed: () -> Unit)
A dialog that should be shown if a user taps the seeing more options on the poll message.
Link copied to clipboard
fun PollOptionInput(value: String, onValueChange: (String) -> Unit, description: String, modifier: Modifier = Modifier, enabled: Boolean = true, maxLines: Int = 1, maxLength: Int = 80, keyboardOptions: KeyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences), decorationBox: @Composable (@Composable () -> Unit) -> Unit = { innerTextField -> innerTextField() })
Custom input field that we use for our Poll option UI. It's fairly simple - shows a basic input with clipped corners and a fully-customizable the input box with the decorationBox, with some extra padding on each side.
Link copied to clipboard
Link copied to clipboard
fun PollViewResultDialog(selectedPoll: SelectedPoll, onDismissRequest: () -> Unit, onBackPressed: () -> Unit)
A dialog that displays poll results for all options in a poll.