Schedule a Meet

Send Meet message#

A meet message typically refers to a message or communication related to scheduling or planning a meeting. These messages can include information about the Scheduled date,time and meet link.

You can send the created meet link in previous step by using the sendMeetMessage() method. You can share the title, link and schdueled date and time using this method.

caution

If Group call feature is unavailable for your plan, then it will throw 403 exception

MeetMessage meetMessage = new MeetMessage();
meetMessage.setToId(TO_JID);
meetMessage.setLink(LINK);
meetMessage.setScheduledDateTime(SCHEDULED_DATE_TIME);
meetMessage.setTitle(TITLE); //Optional
meetMessage.setReplyMessageId(REPLY_MESSAGE_ID); //Optional
meetMessage.setMentionedUsersIds(MENTION_IDS); //Optional
meetMessage.setMetaData(META_DATA); //Optional
meetMessage.setTopicId(TOPIC_ID); //Optional
FlyMessenger.sendMeetMessage(meetMessage, (isSuccess, error, chatMessage) -> {
if (isSuccess) {
//you can add this message object to your arraylist,
//then you can call notifyItemInserted in adapter of recycler view
}
});
val meetMessage = MeetMessage().apply {
toId = TO_JID
link = LINK
scheduledDateTime = SCHEDULED_DATE_TIME
title = TITLE //Optional
replyMessageId = REPLY_MESSAGE_ID //Optional
mentionedUsersIds = MENTION_IDS //Optional
metaData = META_DATA // Optional
topicId = TOPIC_ID// optional
}
FlyMessenger.sendMeetMessage(meetMessage, object : SendMessageCallback{
override fun onResponse(isSuccess: Boolean, error: Throwable?, chatMessage: ChatMessage?) {
if (isSuccess) {
//you can add this message object to your arraylist,
//then you can call notifyItemInserted in adapter of recycler view
}
}
})
ArgumentTypeDescription
MESSAGE_PARAMSMeetMessageObject to hold the parameters of the meet message
CALLBACKSendMessageCallbackcallback to observe the action status

Receive Meet Message#

To receive a Meet message from another user you must implement the messageListener function. It’s a function that will be triggered whenever you receive a new message or related event in the chat.

fun onMessageReceived(ChatMessage message) {
}
fun onMessageReceived(message : ChatMessage) {
}
info

To learn more on message listener callbacks, see the MessageEventsCallbacks.

caution

To join a meet, Microphone and Camera usage permissions were required. Meet SDK also provides method to check those permissions like CallManager.isAudioCallPermissionsGranted() and CallManager.isVideoCallPermissionsGranted(). We can also make use of these methods too.