-
public final class PollMessageContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitPollMessageContent(Modifier modifier, MessageItemState messageItem, Function3<Message, Poll, Option, Unit> onCastVote, Function3<Message, Poll, Vote, Unit> onRemoveVote, Function3<Message, Poll, PollSelectionType, Unit> selectPoll, Function3<Message, Poll, String, Unit> onAddAnswer, Function1<String, Unit> onClosePoll, Function2<Poll, String, Unit> onAddPollOption, Function1<Message, Unit> onLongItemClick)Message content for the poll, which distinguishes the owner and users and allows them to interact. -
-
Method Detail
-
PollMessageContent
@Composable() final static Unit PollMessageContent(Modifier modifier, MessageItemState messageItem, Function3<Message, Poll, Option, Unit> onCastVote, Function3<Message, Poll, Vote, Unit> onRemoveVote, Function3<Message, Poll, PollSelectionType, Unit> selectPoll, Function3<Message, Poll, String, Unit> onAddAnswer, Function1<String, Unit> onClosePoll, Function2<Poll, String, Unit> onAddPollOption, Function1<Message, Unit> onLongItemClick)
Message content for the poll, which distinguishes the owner and users and allows them to interact.
- Parameters:
modifier- Modifier for styling.messageItem- The message item to show the content for.onCastVote- Callback when a user cast a vote on an option.onRemoveVote- Callback when a user remove a vote on an option.selectPoll- Callback when a user selects a poll.onAddAnswer- Callback when a user adds a new answer to the poll.onClosePoll- Callback when a user closes a poll.onAddPollOption- Callback when a user adds a new option to the poll.onLongItemClick- Handler when the user selects a message, on long tap.
-
-
-
-