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
-
onAvailableFeaturesUpdated(
AvailableFeatures availableFeatures) → void - This listener is triggered whenever a AvailableFeatures is updated. Listen to this method to handle the features 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.
-
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.
-
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