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.

Retrieve a list of polls

Create a PollListQuery instance to retrieve a list of polls matching the specifications set by PollListQueryParams.

let query = channel.createPollListQuery()

let param = PollListQueryParams()
param.channelURL = channel.channelURL
param.channelType = channel.channelType
param.limit = 10
let query = main.createPollListQuery(params: param)

PollListQueryParams

Parameter nameTypeDescription

channelType

channelType

Specifies the type of the channel.

channelUrl

string

Specifies the URL of the channel.

limit

UInt

Specifies the number of results to retrieve per page. Acceptable values are 1 to 20, inclusive. (Default: 10)