Update a poll
You can update a poll by creating and passing a PollUpdateParams
object as an argument to the parameter in the updatePoll()
method.
PollUpdateParams
Parameter name | Type | Description |
---|---|---|
title | string | Specifies the title of a poll. |
data | PollData | Specifies an additional data to accompany the poll. A use case might be to provide explanations for incorrect quiz answers. |
isAnonymous | Bool | Determines whether to make votes anonymous. (Default: |
allowUserSuggestion | Bool | Determines whether to allow users to make suggestions. (Default: |
allowMultipleVotes | Bool | Determines whether to allow users to vote on more than one poll options. (Default: |
closeAt | Int64 | Specifies the time when a poll has closed or will close in Unix seconds. If the value of this property is |
PollHandler
Through PollHandler
, the Sendbird server always notifies whether your poll has been successfully retrieved.