PollAnswersViewController

constructor(pollId: String, chatClient: ChatClient = ChatClient.instance(), scope: CoroutineScope, cachedAnswers: () -> List<Answer> = { emptyList() })

Parameters

pollId

The id of the poll whose answers are listed.

chatClient

The ChatClient used to query the answers and observe events.

scope

The CoroutineScope the controller lives in. Cancelling it stops observing events.

cachedAnswers

Provides the answers already known locally, shown if the first page fails to load.