Implements all methods of the parent class.
enum State {Started,Stopped,Revealed}
interface Callback {void onStateChanged(State state);void onResults();void onVote();}
Returns poll question.
Question getQuestion();
Returns poll options.
List<Option> getOptions();
Returns JSON array
of results.
JsonArray getResults();
Returns results for each source.
JsonArray getResultsPerSource();
Returns array
with single element that represents option user voted for.
int[] getUserVote();
Returns correct option index if vote has been revealed.
int getCorrectOption();
Returns true
if validated user required.
boolean isValidatedUserRequired();
Returns true
if user already voted.
boolean hasUserVoted();
Returns true
if results present and state of the element satisfies reveal mode.
boolean hasResults();
Vote for specified option (zero-based numbering). Returns true
on success.
boolean vote(int optionIndex)