Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Home
/
Chat
/
iOS
/
Message
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.

Add a poll option

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

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

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