/ SDKs / iOS
SDKs
Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4

Retrieve a list of polls

Copy link

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

Copy link
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)