ChannelEventHandler class Null safety
Represents a class to notify various channel event.
This is base class that you can mixin, so that you can register on SendbirdSdk.addChannelEventHandler. Typically you want to use this class as following:
class MyHandler with ChannelEventHandler {
@override
void onMessageReceived(BaseChannel channel, BaseMessage message) {
//user logic here when new message is arrived
}
...
}
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
onChannelChanged(
BaseChannel channel) → void -
Informs when a
channel
has been changed -
onChannelDeleted(
String channelUrl, ChannelType channelType) → void -
Informs when an channel was deleted, and give
information
channelUrl
andchannelType
-
onChannelFrozen(
BaseChannel channel) → void -
Informs when a
channel
has been frozen -
onChannelHidden(
BaseChannel channel) → void -
Informs when a
channel
has been hidden -
onChannelMemberCountChanged(
List< GroupChannel> channels) → void - Informs when broadcast channel's member count has been updated
-
onChannelOperatorsUpdated(
BaseChannel channel) → void -
Informs when operators has been updated on
channel
-
onChannelParticipantCountChanged(
List< OpenChannel> channels) → void - Informs when open channel's member count has been updated
-
onChannelUnfrozen(
BaseChannel channel) → void -
Informs when a
channel
has been unfrozen -
onDeliveryReceiptUpdated(
GroupChannel channel) → void -
Informs when delivery receipts get updated with
given group
channel
-
onMentionReceived(
BaseChannel channel, BaseMessage message) → void -
Informs when someone mentioned a speicific user,
with given
channel
andmessage
object -
onMessageDeleted(
BaseChannel channel, int messageId) → void -
Infomrs when a message with
messageId
has been deleted fromchannel
-
onMessageReceived(
BaseChannel channel, BaseMessage message) → void -
Informs when a message is received, with given
channel
andmessage
object -
onMessageUpdated(
BaseChannel channel, BaseMessage message) → void -
Informs when a message is updated, with given
channel
andmessage
object -
onMetaCountersCreated(
BaseChannel channel, Map< String, int> metaCounters) → void -
Informs when
metaCounters
has been created onchannel
-
onMetaCountersDeleted(
BaseChannel channel, List< String> metaCounterKeys) → void -
Informs when a meta counter with
metaCounterKeys
has been deleted onchannel
-
onMetaCountersUpdated(
BaseChannel channel, Map< String, int> metaCounters) → void -
Informs when
metaCounters
has been updated onchannel
-
onMetaDataCreated(
BaseChannel channel, Map< String, String> metaData) → void -
Informs when
metaData
has been created onchannel
-
onMetaDataDeleted(
BaseChannel channel, List< String> metaDataKeys) → void -
Informs when metaData with
metaDataKeys
has been deleted onchannel
-
onMetaDataUpdated(
BaseChannel channel, Map< String, String> metaData) → void -
Informs when
metaData
has been updated onchannel
-
onPinUpdated(
BaseChannel channel) → void - Informs when a Pin is update
-
onPollDeleted(
int pollId) → void - Informs when a Poll is deleted
-
onPollUpdated(
PollUpdateEvent event) → void - Informs when a Poll is updated
-
onPollVoted(
PollVoteEvent event) → void - Informs when a Poll is voted
-
onReactionUpdated(
BaseChannel channel, ReactionEvent event) → void -
Informs when an reaction
event
happens onchannel
-
onReadReceiptUpdated(
GroupChannel channel) → void -
Informs when read receipts get updated with
given group
channel
-
onThreadInfoUpdated(
BaseChannel channel, ThreadInfoUpdateEvent event) → void -
Informs when a thread info
event
has been updated onchannel
-
onTypingStatusUpdated(
GroupChannel channel) → void -
Informs when a user sends typing status in
group
channel
-
onUserBanned(
BaseChannel channel, User user) → void -
Informs when a
user
get banned fromchannel
-
onUserDeclinedInvitation(
GroupChannel channel, User invitee, User? inviter) → void -
Informs when a user declined invitation from
inviter
-
onUserEntered(
OpenChannel channel, User user) → void -
Informs when a
user
entered to openchannel
-
onUserExited(
OpenChannel channel, User user) → void -
Informs when a
user
exited from openchannel
-
onUserJoined(
GroupChannel channel, User user) → void -
Informs when a
user
joined to groupchannel
-
onUserLeaved(
GroupChannel channel, User user) → void -
Informs when a
user
leaved from groupchannel
-
onUserMuted(
BaseChannel channel, User user) → void -
Informs when a
user
get muted inchannel
-
onUserReceivedInvitation(
GroupChannel channel, List< User> invitees, User? inviter) → void -
Informs when users are invited by
inviter
-
onUserUnbanned(
BaseChannel channel, User user) → void -
Informs when a
user
get unbanned fromchannel
-
onUserUnmuted(
BaseChannel channel, User user) → void -
Informs when a
user
get unmuted inchannel
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited