Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Version 4
Home
/
Chat
/
iOS
/
Message

Add a poll option

Copy link

You can add a poll option to an existing poll by using pollId and optionText in the addPollOption() method.

channel.addPollOption(pollId: poll.pollId, optionText: "new Option") { poll, error in

}

PollHandler

Copy link

Through PollHandler, the Sendbird server always notifies whether your poll option has been successfully added.

public typealias PollHandler = (_ poll: Poll?, _ error: SBError?) -> Void