core
Toggle table of contents
1.2.0
android
common
ios
Platform filter
android
common
ios
Switch theme
Search in API
core
core
/
com.cloudflare.realtimekit.polls
Package-level
declarations
Types
Types
Poll
Link copied to clipboard
class
Poll
(
val
id
:
String
,
val
question
:
String
,
val
anonymous
:
Boolean
,
val
hideVotes
:
Boolean
,
val
createdBy
:
String
,
val
options
:
List
<
PollOption
>
,
val
voted
:
List
<
String
>
)
RealtimeKit poll message which contains the poll details
Poll
Option
Link copied to clipboard
class
PollOption
(
val
text
:
String
,
val
votes
:
List
<
PollVote
>
,
val
count
:
Int
)
Polls
Error
Link copied to clipboard
android
common
ios
actual
sealed
class
PollsError
:
RtkError
expect
sealed
class
PollsError
:
RtkError
actual
sealed
class
PollsError
:
RtkError
Polls
Error
Code
Link copied to clipboard
ios
enum
PollsErrorCode
:
Enum
<
PollsErrorCode
>
,
ErrorCode
Poll
Vote
Link copied to clipboard
class
PollVote
(
val
id
:
String
,
val
name
:
String
)
Rtk
Polls
Link copied to clipboard
class
RtkPolls
:
PublicAPIEmitter
<
RtkPollsEventListener
>
RealtimeKit poll
Rtk
Polls
Event
Listener
Link copied to clipboard
interface
RtkPollsEventListener
:
ExternalEventListener