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

ChannelEventHandler()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 and channelType
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 groupchannel
onMentionReceived(BaseChannel channel, BaseMessage message) → void
Informs when someone mentioned a speicific user, with given channel and message object
onMessageDeleted(BaseChannel channel, int messageId) → void
Infomrs when a message with messageId has been deleted from channel
onMessageReceived(BaseChannel channel, BaseMessage message) → void
Informs when a message is received, with given channel and message object
onMessageUpdated(BaseChannel channel, BaseMessage message) → void
Informs when a message is updated, with given channel and message object
onMetaCountersCreated(BaseChannel channel, Map<String, int> metaCounters) → void
Informs when metaCounters has been created on channel
onMetaCountersDeleted(BaseChannel channel, List<String> metaCounterKeys) → void
Informs when a meta counter with metaCounterKeys has been deleted on channel
onMetaCountersUpdated(BaseChannel channel, Map<String, int> metaCounters) → void
Informs when metaCounters has been updated on channel
onMetaDataCreated(BaseChannel channel, Map<String, String> metaData) → void
Informs when metaData has been created on channel
onMetaDataDeleted(BaseChannel channel, List<String> metaDataKeys) → void
Informs when metaData with metaDataKeys has been deleted on channel
onMetaDataUpdated(BaseChannel channel, Map<String, String> metaData) → void
Informs when metaData has been updated on channel
onReactionUpdated(BaseChannel channel, ReactionEvent event) → void
Informs when an reaction event happens on channel
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 on channel
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 from channel
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 open channel
onUserExited(OpenChannel channel, User user) → void
Informs when a user exited from open channel
onUserJoined(GroupChannel channel, User user) → void
Informs when a user joined to group channel
onUserLeaved(GroupChannel channel, User user) → void
Informs when a user leaved from group channel
onUserMuted(BaseChannel channel, User user) → void
Informs when a user get muted in channel
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 from channel
onUserUnmuted(BaseChannel channel, User user) → void
Informs when a user get unmuted in channel
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited