ChatroomController class

Mixed-in types
Available extensions

Constructors

ChatroomController.new({required String roomId, required String ownerId, ChatroomEventListener? listener, Future<List<ChatroomGiftPageController>?>? giftControllers, List<ChatroomParticipantPageController>? participantControllers})

Properties

giftControllers Future<List<ChatroomGiftPageController>?>?
礼物列表
final
hashCode int
The hash code for this object.
no setterinherited
listener ChatroomEventListener?
final
ownerId String
final
participantControllers List<ChatroomParticipantPageController>
latefinal
roomId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

chatroomOperating(ChatroomOperationType type) Future<void>

Available on ChatroomController, provided by the ChatroomImplement extension

dispose() → void
hiddenInputBar() → void

Available on ChatroomController, provided by the Actions extension

isOwner() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAnnouncementUpdate(String roomId, String announcement) → void
When chatroom announcement updated.The method will called.
inherited
onEventResultChanged(String roomId, RoomEventsType type, ChatError? error) → void
room event response.
override
onGlobalNotifyReceived(String roomId, List<Message> notifyMessages) → void
When admin publish global notify message,the method will called.
inherited
onMessageRecalled(String roomId, List<Message> msgs) → void
When some one recall a message,the method will call.
inherited
onMessageReceived(String roomId, List<Message> msgs) → void
Received message from chatroom participants.
inherited
onMessageTransformed(String roomId, Message message) → void
inherited
onUserBeKicked(String roomId, ChatroomBeKickedReason reason) → void
When some user kicked out by owner.
inherited
onUserJoined(String roomId, List<Message> msgs) → void
When a user joins a chatroom.The method carry user info for display.
inherited
onUserLeave(String roomId, String userId) → void
When some user leave chatroom.
inherited
onUserMuted(String roomId, List<String> userIds) → void
When some room participants were muted,then method will call notify Administrator.
inherited
onUserUnmuted(String roomId, List<String> userIds) → void
When some room participants were unmuted,then method will call notify Administrator.
inherited
operatingUser(String roomId, ChatroomUserOperationType type, String userId) Future<void>

Available on ChatroomController, provided by the ChatroomImplement extension

recall({required String roomId, required Message message}) Future<void>

Available on ChatroomController, provided by the ChatroomImplement extension

report({required String messageId, required String tag, required String reason}) Future<void>

Available on ChatroomController, provided by the ChatroomImplement extension

sendGift(GiftEntityProtocol gift) Future<void>

Available on ChatroomController, provided by the ChatroomImplement extension

sendMessage(String content) Future<void>

Available on ChatroomController, provided by the ChatroomImplement extension

setInputBarState(ChatInputBarState? state) → void

Available on ChatroomController, provided by the ChatUIKitExt extension

setShowGiftsViewCallback(ChatroomShowGiftListAction? callback) → void

Available on ChatroomController, provided by the ChatUIKitExt extension

setShowParticipantsViewCallback(VoidCallback? callback) → void

Available on ChatroomController, provided by the ChatUIKitExt extension

showGiftSelectPages() → void

Available on ChatroomController, provided by the Actions extension

showParticipantPages() → void

Available on ChatroomController, provided by the Actions extension

toString() String
A string representation of this object.
inherited
translateMessage({required Message message, required LanguageCode languageCode}) Future<Message?>

Available on ChatroomController, provided by the ChatroomImplement extension

Operators

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