Single & Group Chat
A flychat is a chat that allows close interaction among a two users, and is displayed once a connection with Mirrorfly server is established. Fly chat can be easily managed without the need for complex implementation because the FlyChatActivity
or FlyChatFragment
uses the ChatAdapter to display and update chat information, as well as handle core features and real-time updates.
Plain text messages can be sent from UIKit. All messages in chats are stored using local db.
Note : If one to one call feature unavailable for your plan then voice and video call option will not display in
FlyChatFragment
.
#
Start an activityUse the below function to open the FlyChatActivity
using the unique JID
and CHATTYPE
of the chat as follows:
info
User can get their chatType from RecentChat model object by using the flag "recentChat.isGroup".
If it is true
CHATTYPE is "groupchat" or else "chat".
#
Search in chat screenSearch is used to search a text message, image & video caption, contact name, audio and document title from chat screen. you can refer the below image.
#
StyleSetStyleSet is the list of styles provided by MirrorFly UIKit. Customizing the style of Chat
list items is straightforward: Simply inherit the MirrorFly UIKit-defined styles, then override the res/values/styles.xml
or res/values/themes.xml
file from the list below.
For example, the User, Message, MessageInput, Timeline, AppBar, RecyclerView
theme can be changed by overriding the Widget.MirrorFly.Message.User
Widget.MirrorFly.RecyclerView.Message
Widget.MirrorFly.Message.MessageInput
Widget.MirrorFly.Message.Timeline
Widget.MirrorFly.AppBar
Widget.MirrorFly.RecyclerView
.
#
List of attributes of Widget.MirrorFly.RecyclerView.MessageAttribute | Resource type | Description |
---|---|---|
mf_pager_recycler_view_use_divide_line | boolean | Determines whether to use line dividers between messages. |
mf_message_recyclerview_background | drawable/color | The background of the entire message list. |
#
List of attributes of Widget.MirrorFly.MessageAttribute | Resource type | Description |
---|---|---|
mf_message_time_text_appearance | text appearance | The size, color, font, and style of the text indicating the time the message was generated. |
mf_message_sender_name_text_appearance | text appearance | The size, color, font, and style of the text indicating the user's nickname. |
#
List of attributes of Widget.MirrorFly.UserAttribute | Resource type | Description |
---|---|---|
mf_message_me_text_appearance | text appearance | The size, color, font, and style of text messages sent by the current user. |
mf_message_other_text_appearance | text appearance | The size, color, font, and style of text messages sent by other users. |
mf_message_me_background | drawable/color | The background of text messages sent by the current user. |
mf_message_other_background | drawable/color | The background of text messages sent by other users. |
mf_message_me_background_tint | color | The background tint of text messages sent by the current user. |
mf_message_other_background_tint | color | The background tint of text messages sent by other users. |
#
List of attributes of Widget.MirrorFly.TimelineAttribute | Resource type | Description |
---|---|---|
mf_message_timeline_text_appearance | text appearance | The size, color, font, style of text in timeline messages. |
mf_message_timeline_background | drawable/color | The background of timeline messages. |
#
List of attributes of Widget.MirrorFly.MessageInputAttribute | Resource type | Description |
---|---|---|
mf_message_input_background | drawable/color | The background of message input. |
mf_message_input_text_background | drawable/color | The background of message input text. |
mf_message_input_text_appearance | text appearance | The size, color, font, style of text in message input. |
mf_message_input_text_hint_color | color | The color of text hint message input |
mf_message_input_text_cursor_drawable | color | The color of text cursor message input |
mf_message_input_left_button_tint | color | The left button tint of message input. |
mf_message_input_left_button_background | drawable/color | The background of message input left button. |
mf_message_input_right_button_tint | color | The right button tint of message input.. |
mf_message_input_right_button_background | drawable/color | The background of message input right button. |
#
StringSetListed below are all the strings used in UIKit for Android. Strings can be changed by overwriting the res/values/strings.xml
files with the same name.
#
IconSetListed below are all the icons used in UIKit Single/Group Chat
for Android. Icons can be changed by overwriting the res/drawable
files with the same name.
Icon name | Image | Description |
---|---|---|
ic_call | Icon of Call button. | |
ic_video_call | Icon of Video button. | |
icon_gallery | Icon of Gallery. | |
ic_reply | Icon of Replay. | |
ic_share | Icon of Forward. | |
ic_message_info | Icon of Message Info. | |
icon_send | Icon of Message Send. | |
icon_attachment | Icon of Attachment. | |
ic_message_unsent | Icon of Message Unsent. | |
ic_message_seen | Icon of Message Seen. | |
ic_message_delivered | Icon of Message Delivered. | |
ic_message_acknowledged | Icon of Message Ack. | |
icon_contact | Icon of Contact Attachment. | |
icon_arrow_left | Goes back to the previous page. | |
ic_pin | Icon of Location Attachment. |