Interface that is passed on to SessionHandler.onAccessTokenRequired.
After the application fetches the new accessToken, it should pass on the accessToken to SDK through onSuccess.
If any error occurred during this process, it must call onFail to let SDK know the status.
The connection handler.
This handler provides callbacks for automatically managed reconnection events.
SendbirdChat tries reconnection when the connection is lost.
This handler can be used to track the reconnection state.
To add or remove this handler, refer to SendbirdChat.addConnectionHandler and SendbirdChat.removeConnectionHandler.
A class representing query to retrieve GroupChannel list for the current User.
Currently, 1 kind of GroupChannel list can be queried.
The list of GroupChannels the current User is a member of.
Parameters for creating poll and updating poll operations. For poll creation, title and
optionTexts are required and all other members are optional. For poll update, all members are
optional.
Class representing data for poll.
A poll may or may not have a data, which is an additional field used after user's vote.
Currently this class only supports text data.
Class representing a poll option.
A poll options can be created by Poll.create and GroupChannelPoll.addPollOption.
text is the only field set by the client.
Other fields can be set by the server and voting.
Parameters for retrieving poll option.
A poll option should be
specified by the pollId of the poll that the option belongs to and pollOptionId of the
option, and the channelUrl of the channel that the poll specified by pollId belongs
to.
Class representing an event that a Poll has been updated.
This event will be passed to GroupChannelHandler.onPollUpdated.
Once this event is received, the user must find cached messages
that contain this poll and apply changes using Poll.applyPollUpdateEvent.
Class representing an event that one or more vote has been casted on a poll option.
The affected poll may be in multiple channels.
This event will be passed to GroupChannelHandler.onPollVoted.
Once this event is received, the user must find cached messages
that contain this poll and apply changes using Poll.applyPollVoteEvent.
GroupChannelListQueryOrder
chronological query returns the result as by event time descending order.
latestLastMessage query returns the result as by event time descending order.
channelNameAlphabetical query returns the result as by channel name alphabetical order.
The order in which the query result will be based on.
score query returns the result as by their matching score.
timestamp query returns the result as by BaseMessage's timestamp.
@since 4.0.13