shared
1.32.0
common
shared
/
io.dyte.core.feat
/
DytePoll
Dyte
Poll
class
DytePoll
:
PublicAPIEmitter
<
DytePollEventsListener
>
Dyte poll
Members
Types
Companion
Link copied to clipboard
object
Companion
Properties
polls
Link copied to clipboard
val
polls
:
List
<
DytePollMessage
>
Functions
add
Listener
Link copied to clipboard
fun
addListener
(
listener
:
DytePollEventsListener
)
add
Main
Thread
Listener
Link copied to clipboard
fun
addMainThreadListener
(
listener
:
DytePollEventsListener
)
create
Link copied to clipboard
fun
create
(
question
:
String
,
options
:
List
<
String
>
,
anonymous
:
Boolean
,
hideVotes
:
Boolean
)
Create poll
remove
Listener
Link copied to clipboard
fun
removeListener
(
listener
:
DytePollEventsListener
)
remove
Main
Thread
Listener
Link copied to clipboard
fun
removeMainThreadListener
(
listener
:
DytePollEventsListener
)
to
Map
Link copied to clipboard
fun
toMap
(
)
:
List
<
Map
<
String
,
Any
?
>
>
vote
Link copied to clipboard
fun
vote
(
pollMessage
:
DytePollMessage
,
pollOption
:
DytePollOption
)
Vote on poll