HMSPollResponseBuilder
Helps gather answers to a poll.
Parameters
hmsPoll
the poll which is being answered.
userId
the userid associated with the response.
Constructors
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.