PollModal

Properties

Link copied to clipboard
open override val id: String

Unique identifier for this UI component.

Link copied to clipboard
open override val isEnabled: Boolean

Whether this component is currently enabled.

Link copied to clipboard
open override val isVisible: Boolean

Whether this component is currently visible.

Link copied to clipboard

Functions

Link copied to clipboard

Checks if user can create polls

Link copied to clipboard
open fun canEndPoll(): Boolean

Checks if user can end poll

Link copied to clipboard
open override fun disable()

Disable this component.

Link copied to clipboard
open override fun dispose()

Dispose of this component and release resources.

Link copied to clipboard
open override fun enable()

Enable this component.

Link copied to clipboard
open fun getActivePoll(): Poll?

Gets active poll if any

Link copied to clipboard

Gets previous polls

Link copied to clipboard
open fun hasVoted(poll: Poll): Boolean

Checks if user has voted on poll

Link copied to clipboard
open override fun hide()

Hide this component.

Link copied to clipboard
open override fun show()

Show this component.