Single Chat/ Group Chat
Note : If one to one call feature unavailable for your plan then voice and video call option it will not display in
MFUIChatViewParentController
.
#
InitializeYou start building the chat service by calling the MFUIChatViewParentController
class. It uses MFUIUserMessageCell
class to display the messages in chat.
The MFUIChatViewParentController
should get initialised with the recent chat obtained
from the previous screen.
#
UsageThe following items are key elements of MFUIChatViewParentController
that are used to
create a functional chat.
#
Module componentsIn the MFUIChatViewParentController
class, MFUIChatViewParentModule
and its components are used to create and display the chat view. The module is composed of three components: headerComponent, listComponent, and inputComponent.
Property name | Type |
---|---|
headerComponent | MFUIChatViewParentModule.Header |
listComponent | MFUIChatViewParentModule.List |
inputComponent | MFUIChatViewParentModule.Input |
#
Customisation Of Header ComponentThe Header component can be customised using the MFComponentTheme
as below
#
Customisation of Message CellThe UI components of the Message Cell can be customised by using the MFMessageCellTheme in MFUITheme.
#
Background ColorIt represents the background color of the message list.
Category | Property | Description |
---|---|---|
Background color | backgroundColor | background color of the message list |
#
Receiver cell BackgroundReceiver cell background can be customised using the below property
Category | Property | Description |
---|---|---|
Background color | rightBackgroundColor | background color of the receiver message cell |
#
Receiver cell Text colorReceiver cell text color can be customised using the below property
Category | Property | Description |
---|---|---|
Background color | userMessageRightTextColor | text color of the receiver message cell |
Note : If Attachment feature unavailable for your plan then it will not display in
MFUIMessageInputView
.
#
Customisation Of Input ComponentThe Input component can be customised using the MFMessageInputTheme
as below
The following screenshot shows the message cell before and after the customisation