BaseChannelHandler class
The BaseChannel handler.
This handler provides callbacks for events related OpenChannel or GroupChannel.
All callbacks are called only when the currently logged-in User is a participant or member of OpenChannel
or GroupChannel
respectively.
To add or remove this handler, refer to SendbirdChat.addChannelHandler and SendbirdChat.removeChannelHandler.
- Implementers
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 nonexistent method or property is accessed.
inherited
-
onChannelChanged(
BaseChannel channel) → void - A callback for when channel property is changed.
-
onChannelDeleted(
String channelUrl, ChannelType channelType) → void - A callback for when channel is deleted.
-
onChannelFrozen(
BaseChannel channel) → void - A callback for when channel is frozen (Users can't send messages).
-
onChannelUnfrozen(
BaseChannel channel) → void - A callback for when channel is unfrozen (Users can send messages).
-
onMentionReceived(
BaseChannel channel, BaseMessage message) → void - A callback for when a mention is received.
-
onMessageDeleted(
BaseChannel channel, int messageId) → void - A callback for when a message is deleted.
-
onMessageReceived(
BaseChannel channel, BaseMessage message) → void - A callback for when a message is received.
-
onMessageUpdated(
BaseChannel channel, BaseMessage message) → void - A callback for when a message is updated.
-
onMetaCountersCreated(
BaseChannel channel, Map< String, int> metaCounters) → void - A callback for when channel meta counters is created.
-
onMetaCountersDeleted(
BaseChannel channel, List< String> metaCounterKeys) → void - A callback for when channel meta counters are deleted.
-
onMetaCountersUpdated(
BaseChannel channel, Map< String, int> metaCounters) → void - A callback for when channel meta counters is updated.
-
onMetaDataCreated(
BaseChannel channel, Map< String, String> metaData) → void - A callback for when channel meta data is created.
-
onMetaDataDeleted(
BaseChannel channel, List< String> metaDataKeys) → void - A callback for when channel meta data is deleted.
-
onMetaDataUpdated(
BaseChannel channel, Map< String, String> metaData) → void - A callback for when channel meta data is updated.
-
onOperatorUpdated(
BaseChannel channel) → void - A callback for when operators change in channel
-
onReactionUpdated(
BaseChannel channel, ReactionEvent event) → void - A callback for when a reactionEvent is updated.
-
onThreadInfoUpdated(
BaseChannel channel, ThreadInfoUpdateEvent event) → void - A callback for when the thread information is updated.
-
onUserBanned(
BaseChannel channel, RestrictedUser restrictedUser) → void - A callback for when a user is banned from channel.
-
onUserMuted(
BaseChannel channel, RestrictedUser restrictedUser) → void - A callback for when a user is muted from channel.
-
onUserUnbanned(
BaseChannel channel, User user) → void - A callback for when a user is unbanned from channel.
-
onUserUnmuted(
BaseChannel channel, User user) → void - A callback for when a user is unmuted from channel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited