Skip to main content

Widget Documentation: LMFeedPostPollView

Widget: LMFeedPostPollView

The LMFeedPostPollView is a customizable view for displaying and interacting with polls, including options for configuration, styling, and click actions.

MethodDescription
setStyle(postPollViewStyle: LMFeedPostPollViewStyle)Applies the given style to the poll view.
setPollTitle(pollTitle: String)Sets the title of the poll.
setPollInfo(pollInfo: String)Sets additional poll information.
setMemberVotedCount(pollAnswerText: String)Displays the count of members who have voted.
setTimeLeft(timeLeft: String)Sets the time left for the poll.
setPollOptions(pollPosition: Int, options: List, optionStyle: LMFeedPostPollOptionViewStyle, listener: LMFeedPollOptionsAdapterListener)Configures the poll options.
setSubmitButtonVisibility(pollViewData: LMFeedPollViewData)Controls the visibility of the submit button.
setAddPollOptionButtonVisibility(pollViewData: LMFeedPollViewData)Controls the visibility of the "add poll option" button.
setEditPollVoteVisibility(pollViewData: LMFeedPollViewData)Controls the visibility of the "edit poll vote" option.
setPollTitleClicked(listener: LMFeedOnClickListener)Registers a click listener for the poll title.
setEditPollClicked(listener: LMFeedOnClickListener)Registers a click listener for the edit poll action.
setClearPollClicked(listener: LMFeedOnClickListener)Registers a click listener for the clear poll action.
setAddPollOptionClicked(listener: LMFeedOnClickListener)Registers a click listener for the "add poll option" button.
setSubmitPollVoteClicked(listener: LMFeedOnClickListener)Registers a click listener for submitting poll votes.
setMemberVotedCountClicked(listener: LMFeedOnClickListener)Registers a click listener for the member-voted count.
setEditPollVoteClicked(listener: LMFeedOnClickListener)Registers a click listener for editing poll votes.

View the code on GitHub

View Style: LMFeedPostPollViewStyle

The LMFeedPostPollViewStyle defines the appearance and layout properties for the LMFeedPostPollView, including text, button, and icon configurations.

FieldDescriptionType
pollTitleTextStyleDefines the text style for the poll title.LMFeedTextStyle
pollOptionsViewStyleConfigures the style for poll options.LMFeedPostPollOptionViewStyle
membersVotedCountTextStyleSets the text style for the member-voted count.LMFeedTextStyle
pollInfoTextStyleDefines the text style for additional poll information.LMFeedTextStyle
submitPollVoteButtonStyleConfigures the style for the submit button.LMFeedButtonStyle
pollExpiryTextStyleConfigures the text style for the poll expiry time.LMFeedTextStyle
addPollOptionButtonStyleSets the style for the "add poll option" button.[LMFeedButtonStyle]../Fundamentals/LMFeedButton.md)
editPollIconStyleDefines the style of the edit poll icon.LMFeedIconStyle
clearPollIconStyleDefines the style of the clear poll icon.LMFeedIconStyle
editPollVoteTextStyleConfigures the text style for editing poll votes.LMFeedTextStyle

View the code on GitHub