/ SDKs / Android
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Version 4

Close a poll

Copy link

You can close a poll by specifying the pollId in the closePoll() method.

fun closePoll(channel: GroupChannel, pollId: Long) {
    channel.closePoll(pollId) { poll, e ->
        if (e != null) {
            // Handle error.

        // The poll has been successfully closed.


Copy link

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

fun interface PollHandler {
    fun onResult(poll: Poll?, e: SendbirdException?)