PollConfig
The PollConfig object is used to configure a poll.
Constructors
Link copied to clipboard
constructor(name: String, options: List<String>, description: String = "", votingVisibility: VotingVisibility = VotingVisibility.PUBLIC, enforceUniqueVote: Boolean = true, maxVotesAllowed: Int = 1, allowUserSuggestedOptions: Boolean = false, allowAnswers: Boolean = false)
Constructor to create a PollConfig with a list of option texts.
constructor(name: String, options: List<PollOption>, description: String = "", votingVisibility: VotingVisibility = VotingVisibility.PUBLIC, enforceUniqueVote: Boolean = true, maxVotesAllowed: Int = 1, allowUserSuggestedOptions: Boolean = false, allowAnswers: Boolean = false, extraData: Map<String, Any> = emptyMap())
Alternative constructor to create a PollConfig with a list of options with extra data.
Properties
Link copied to clipboard
If set to true, users can send answers.
Link copied to clipboard
If set to true, users can suggest new options.
Link copied to clipboard
The description of the poll.
Link copied to clipboard
If set to true, a user can only vote once.
Link copied to clipboard
The maximum number of votes a user can cast.
Link copied to clipboard
The list of options for the poll.
Link copied to clipboard
The visibility of the votes. If set to VotingVisibility.ANONYMOUS, the votes will be anonymous.