Implements all methods of the parent class.
enum State {Started,Stopped}
interface Callback {void onStateChanged(State state);void onResults();void onVote();}
Returns poll questions.
List<Question> getQuestions();
Returns poll options for all questions.
List<List<Option>> getOptions();
Returns results for each source.
Returns JSON array
of results.
JsonArray getResults();
Returns results for each source.
JsonArray getResultsPerSource();
Returns array
where each element is an option index you've voted for. See Get results section to see how votes are stored.
int[] getUserVote();
Returns true
if validated user required.
boolean isValidatedUserRequired();
Returns true if user already voted.
boolean hasUserVoted();
Returns true
if results present and state of element satisfies reveal mode.
boolean hasResults();
Vote for option (zero-based numbering) of a question (zero-based numbering). Returns true
on success.
boolean vote(int questionIndex, int optionIndex)