Mention

To Mention user along with a message in a group, you can use mentionedUsersIds param provided to all kinds of messages such as Text, Image, video.

Text message#

To send your text message, you need to pass the MessageParams.text object as an argument to the parameter in the sendMessage() method.

Image message#

To send image as a message call the below method. Calling the below method will upload the image file to the server provided during sdk initialization then send the message

To send your image message, you need to pass the MessageParams.image object as an argument to the parameter in the sendMessage() method.

Video message#

Video sharing is very useful communication between users. sdk provides methods to send the video message to the end users. once the user has sent message via sdk, it will give callback with status. if you want send the video message for a user, you can utilise the below method.

To send your video message, you need to pass the MessageParams.video object as an argument to the parameter in the sendMessage() method.

Send Reply message#

To send reply message to the original message, you need to pass the additional parameter original message-id in replyMessageId.MessageParams.text object as an argument to the parameter in the sendMessage() method.

Receive Message#

To receive a mentioned related message from another user in a group, you must implement the messageListeners. It’s a listener that will be triggered whenever you receive a new message in the chat.

Mirrorfly.onMessageReceived.listen(event) {
var chatMessageModel = sendMessageModelFromJson(event);
//called when the new message is received
}

Note : You can listen to incoming messages by using the onMessageReceived listener.