HMSPollResponseBuilder

class HMSPollResponseBuilder(val hmsPoll: HmsPoll, val userId: String?)

Helps gather answers to a poll.

Parameters

hmsPoll

the poll which is being answered.

userId

the userid associated with the response.

Constructors

Link copied to clipboard
fun HMSPollResponseBuilder(hmsPoll: HmsPoll, userId: String?)

Functions

Link copied to clipboard
fun addResponse(forOpenQuestion: HMSPollQuestion, text: String, durationMillis: Long? = null): HMSPollResponseBuilder

Adds a response for an open-ended question.

fun addResponse(forQuestion: HMSPollQuestion, options: List<HMSPollQuestionOption>, durationMillis: Long? = null): HMSPollResponseBuilder

Adds a response for a question with multiple selectable options.

fun addResponse(forQuestion: HMSPollQuestion, option: HMSPollQuestionOption, durationMillis: Long? = null): HMSPollResponseBuilder

Adds a response for a question with a single selectable option from many.

Properties

Link copied to clipboard
Link copied to clipboard