-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PollsConfig implements Parcelable
The configuration for the various poll features. It determines if the user can or cannot enable certain poll features.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPollsConfig.Companion
-
Field Summary
Fields Modifier and Type Field Description private final PollFeatureConfigmultipleVotesprivate final PollFeatureConfiganonymousPollprivate final PollFeatureConfigsuggestAnOptionprivate final PollFeatureConfigallowCommentsprivate final IntegerquestionTextLimitprivate final IntegeroptionTextLimit
-
Constructor Summary
Constructors Constructor Description PollsConfig(PollFeatureConfig multipleVotes, PollFeatureConfig anonymousPoll, PollFeatureConfig suggestAnOption, PollFeatureConfig allowComments, Integer questionTextLimit, Integer optionTextLimit)
-
Method Summary
Modifier and Type Method Description final PollFeatureConfiggetMultipleVotes()final PollFeatureConfiggetAnonymousPoll()final PollFeatureConfiggetSuggestAnOption()final PollFeatureConfiggetAllowComments()final IntegergetQuestionTextLimit()final IntegergetOptionTextLimit()-
-
Constructor Detail
-
PollsConfig
PollsConfig(PollFeatureConfig multipleVotes, PollFeatureConfig anonymousPoll, PollFeatureConfig suggestAnOption, PollFeatureConfig allowComments, Integer questionTextLimit, Integer optionTextLimit)
- Parameters:
multipleVotes- Configuration for allowing multiple votes in a poll.anonymousPoll- Configuration for enabling anonymous polls.suggestAnOption- Configuration for allowing users to suggest options in a poll.allowComments- Configuration for adding comments to a poll.questionTextLimit- Optional character limit for the poll question.optionTextLimit- Optional character limit for poll answer options.
-
-
Method Detail
-
getMultipleVotes
final PollFeatureConfig getMultipleVotes()
-
getAnonymousPoll
final PollFeatureConfig getAnonymousPoll()
-
getSuggestAnOption
final PollFeatureConfig getSuggestAnOption()
-
getAllowComments
final PollFeatureConfig getAllowComments()
-
getQuestionTextLimit
final Integer getQuestionTextLimit()
-
getOptionTextLimit
final Integer getOptionTextLimit()
-
-
-
-