Package-level declarations

Functions

Link copied to clipboard
fun PollAnswersDialog(    selectedPoll: SelectedPoll,     showAnonymousAvatar: Boolean,     listViewModel: MessageListViewModel,     onDismissRequest: () -> Unit,     onBackPressed: () -> Unit)
Link copied to clipboard
fun PollDialogHeader(title: String, onBackPressed: () -> 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,     modifier: Modifier = Modifier,     description: String = stringResource(id = R.string.stream_compose_poll_questions_description),     enabled: Boolean = true,     maxLines: Int = 1,     maxLength: Int = 80,     shape: Shape = ChatTheme.shapes.pollOptionInput,     innerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 18.dp),     keyboardOptions: KeyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences),     decorationBox: @Composable (innerTextField: @Composable () -> Unit) -> Unit)

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 should be shown if a user taps the seeing result of the votes.