HMSPollInteractivityCenter class
abstract
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
addMultiChoicePollResponse({required HMSPoll hmsPoll, required HMSPollQuestion pollQuestion, required List<HMSPollQuestionOption> optionsSelected, HMSPeer? peer, Duration? timeTakenToAnswer})
→ Future
-
addMultiChoicePollResponse method is used to answer a multi choice poll
-
addPollUpdateListener({required HMSPollListener listener})
→ void
-
addPollUpdateListener adds the poll update listener to send
the poll events to the application
Parameters:
-
addSingleChoicePollResponse({required HMSPoll hmsPoll, required HMSPollQuestion pollQuestion, required HMSPollQuestionOption optionSelected, HMSPeer? peer, Duration? timeTakenToAnswer})
→ Future
-
addSingleChoicePollResponse method is used to answer a single choice poll
-
fetchLeaderboard({required HMSPoll poll, required int? count, required int startIndex, required bool includeCurrentPeer})
→ Future
-
fetchLeaderboard method is used to fetch leaderboard for a quiz
-
fetchPollList({required HMSPollState hmsPollState})
→ Future
-
fetchPollList method is used to fetch list of polls/quiz with a given state
-
fetchPollQuestions({required HMSPoll hmsPoll})
→ Future
-
fetchPollQuestions method is used to fetch questions for the given poll
-
getPollResults({required HMSPoll hmsPoll})
→ Future
-
getPollResults method is used to fetch poll/quiz results
-
quickStartPoll({required HMSPollBuilder pollBuilder})
→ void
-
quickStartPoll starts a quick poll with supplied arguments
-
removePollUpdateListener()
→ void
-
removePollUpdateListener removes the poll update listener
Thus the application no longer receives poll events
-
stopPoll({required HMSPoll poll})
→ Future
-
stopPoll method is used to stop a poll.