Platform Surface
Parameters
Create A Poll
Create the poll first and keep the returnedpollId if you need to create a poll post.
Vote And Manage A Poll
Use answer IDs from the poll object when voting. Closing and deletion use the poll ID.Notes
- Create a poll post separately after poll creation. Poll creation returns a poll ID; poll-post creation attaches that ID to feed content.
- Use
answerTypevalues that match each SDK: TypeScript usessingleormultiple, iOS uses.singleor.multiple, Android usesAmityPoll.AnswerType, and Flutter usesAmityPollAnswerType. - Flutter currently exposes
vote,closePoll, anddeletePoll, but not an unvote method on the public poll repository. - Deletion and close behavior depends on server-side permissions for the current user.
Related Topics
Poll Posts
Attach an existing poll to a feed post
Text Posts
Create regular text posts for the same feed targets
Post Retrieval
Fetch posts that contain poll data