Creating a poll
A new poll can be created using the create method from the
meeting.polls object. The meeting.polls.create(...)
method accepts the following params.
| Param | Type | Default Value | Required | Description |
|---|---|---|---|---|
| question | String | - | yes | The question that is to be voted for. |
| options | List<String> | - | yes | The options of the poll. |
| anonymous | bool | - | yes | If true, the poll votes are anonymous. |
| hideVotes | bool | - | yes | If true, the votes on the poll are hidden. |
The following snippet creates a poll where votes are anonymous.
meeting.polls.create(
question: "Are you an early bird or a night owl?",
options: ["Early bird", "Night owl"],
anonymous: true,
hideVotes: false,
);