Comment on page
Regular Poll Element
enum State {
Started,
Stopped
}
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
where each element is an option index you've voted for.int[] getUserVote();
Returns
array
of qualifying hashtags.String[] getQualifyingHashtags();
Returns minimum number of options user should vote for.
int getMinOptionsPerVote();
Returns maximum number of options user can vote for.
int getMaxOptionsPerVote();
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 specified option indexes (zero-based numbering). Returns
true
on success.boolean vote(int[] optionIndexes)
Last modified 4yr ago