ChannelManager class
Constructors
- ChannelManager({required String channelId, required String broadcastId})
Properties
- broadcastId → String
-
no setter
- channelId → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenantId → String
-
no setter
Methods
-
addReaction(
{required String icon, required String messageId}) → Future< void> - Reacts on message
-
deleteMessage(
{required String messageId}) → Future< void> - Deletes message
-
deleteReaction(
{required String icon, required String messageId}) → Future< void> - Deletes reaction
-
editMessage(
{required String content, required String messageId}) → Future< void> - Edits the message
-
getActiveUserCount(
) → Future - Returns number of active users in the channel
-
getActiveUsers(
) → Future< List< ActiveUser> > - Returns List of all ActiveUser
-
getBannedUsers(
) → Future< List< BanUser> > -
Returns List of
BanUserof channel -
getMessageHistory(
) → Future< List< Message> > - Returns List of Message depending upon count value
-
getPinnedMessages(
) → Future< List< PinnedMessage> > -
Returns List of all
PinnedMessageof channel -
getPolls(
) → Future< List< Poll> > - Returns the List of Poll available in this channel
-
keepAlive(
) → Future< void> - Sending keep alive Signal to the backend
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
{required String content}) → Future< void> - Sends the message
-
sendSubMessage(
{required String content, required String messageId}) → Future< void> - Sends sub message
-
subscribe(
dynamic channelFunc(Spect8Event)) → void - Subscribes to the channel wide messages socket,
-
subscribeUser(
) → Future< void> - subscribes the channel
-
toString(
) → String -
A string representation of this object.
inherited
-
unSubscribeUser(
) → Future< void> - User can unsubscribe the channel
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited