MessageEventListeners class abstract
A class that provides a set of callback methods that can be used to listen for Message Events in the MirrorFly Flutter Plugin.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAllChatsCleared(
bool isChatCleared) → void - This listener is triggered whenever all chats are cleared. Listen to this method to handle the global clearing of all chat histories in the UI.
-
onArchivedSettingsUpdated(
bool archiveSettingStatus) → void - This listener is triggered whenever the archive settings are updated. Listen to this method to handle changes in the archive chat settings in the UI.
-
onArchiveUnArchiveChats(
String chatJid, bool archiveStatus) → void - This listener is triggered whenever a chat is archived or unarchived. Listen to this method to handle the archive status change of a chat in the UI.
-
onAvailableFeaturesUpdated(
AvailableFeatures availableFeatures) → void - This listener is triggered whenever a AvailableFeatures is updated. Listen to this method to handle the features in the UI.
-
onChatCleared(
String toJid, String chatClearType) → void - This listener is triggered whenever a chat is cleared. Listen to this method to handle the clearing of chat history in the UI.
-
onChatMuteStatusUpdated(
bool isSuccess, String message, List< String> jidList, bool muteStatus) → void - This listener is triggered whenever the mute status for one or more chats is updated. Listen to this method to handle bulk mute/unmute operations in the UI.
-
onMediaStatusUpdated(
ChatMessageModel mediaMessage) → void - This listener is triggered whenever a media chat message is sent. Listen to this method to handle the sent media message, such as updating the status in UI.
-
onMessageDeleted(
String toJid, List< String> messageIds, String messageDeleteType) → void - This listener is triggered whenever a message is deleted. Listen to this method to handle the deletion of a message in the UI.
-
onMessageEdited(
ChatMessageModel chatMessage) → void - This listener is triggered whenever a message is edited. Listen to this method to handle the edited message in the UI.
-
onMessageReceived(
ChatMessageModel chatMessage) → void - This listener is triggered whenever a new chat message arrives. Listen to this method to handle the incoming message, such as updating the UI or storing the message in a database.
-
onMessageStatusUpdated(
ChatMessageModel chatMessage) → void - This listener is triggered whenever a chat message is sent. Listen to this method to handle the sent message, such as updating the status in UI.
-
onUpdateMuteSettings(
bool isSuccess, String message, bool isMuteStatus) → void - This listener is triggered whenever the mute settings for a chat are updated. Listen to this method to handle the result of a mute or unmute operation in the UI.
-
onUploadDownloadProgressChanged(
String messageId, int progressPercentage) → void - This listener is triggered whenever a media chat message is downloaded/uploaded. Listen to this method to handle the upload/download progress updating in the UI.
-
setTypingStatus(
String singleOrGroupJid, String userJid, String status) → void - This listener is triggered whenever a user is composing a message. Listen to this method to handle the typing status in the UI.
-
showOrUpdateOrCancelNotification(
String jid, ChatMessageModel chatMessageModel) → void - This listener is triggered whenever a local notification to be created in UI.
-
toString(
) → String -
A string representation of this object.
inherited
-
userCameOnline(
String jid) → void - This listener is triggered whenever a user comes online. Listen to this method to handle the online status of the user in the UI.
-
userWentOffline(
String jid) → void - This listener is triggered whenever a user goes offline. Listen to this method to handle the offline status of the user in the UI.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited