Voting on a poll
The meeting.polls.vote()
method can be used to register a vote on a poll. It
accepts the following params.
Param | Type | Default Value | Required | Description |
---|---|---|---|---|
pollMessage | DytePollMessage | - | yes | The poll message to vote on. |
pollOption | DytePollOption | - | yes | The option to vote for. |
The following snippet votes for the 1st option on the 1st poll created in the meeting.
val poll: DytePollMessage = meeting.polls.items[0]
val selectedPollOption: DytePollOption = poll.options[0]
meeting.poll.vote(poll, selectedPollOption)