Group Info

Group Info is a feature that allows users to view group info of group chat. one can click header of chat page to visit group info screen.

groupinfo

Initialize#

for Group chat, the profile of users are shown in the screen which includes name, group members count , and list of members. The MFUIGroupInfoViewController is a class that is used to build group info.

In the MFUIGroupInfoViewController class, MFUIGroupInfoModule and its components are used to create and display group info view. The module is composed of two components: headerComponent and listViewcomponent

Property nameType
headerComponentMFUIGroupInfoModule.Header
listViewcomponentMFUIGroupInfoModule.List

Add Participant#

MFUIGroupInfoModule.Header consist a UIbutton to add participant in the group. The button visible to only Admin of the group. After clicking add participants button, it moves to MFUICreateChatViewController to select contacts. Muliple contacts can be selected to add in the group.

groupAdd

Remove Participant#

Admin can remove participant from the group by clicking the participant from the list of MFUIGroupInfoViewController. Popup confirmation screen shown to remove the participant or not.

removeGroup

After confirmation the participant removed from the group and no longer able to message in that group.

Make Admin#

Admin can make another member from the group as Admin by clicking the participant from the list of MFUIGroupInfoViewController. Popup confirmation screen shown to make the participant as Admin.

removeGroup

Leave Group#

User will be removed from the particular group while clicking the Leave group button from the list of MFUIGroupInfoViewController. Popup confirmation screen shown to remove from the group.

removeGroup

Delete Group#

User will be Delete from the particular group while clicking the Delete group button from the list of MFUIGroupInfoViewController. Popup confirmation screen shown to delete from the group.

DeleteGroup

GroupInfo Theme#

Custom theme Class MFGroupInfoTheme subclass of MFUITheme is used to change the theme of User profile controller. The following table shows a customizable property of MFGroupInfoTheme to set font and colors.

property NameDescription
groupNameTitleColorThe text color of the group name.
groupNameTitleFontThe text font of the group name.
groupParticipantCountTitleColorThe text color of the group member count.
groupParticipantCountTitleFontThe text font of the group member count.
userTitleColorThe text color of user profile title
userdescriptionColorThe text color of user descripiton
userTitleFontThe text font of user profile title
userDescriptionFontThe text font of user descripiton
adminTitleColorThe text color of admin user title
adminTitleFontThe text font of admin user title
underLineColorThe line color between user's each title and description
addParticipantColorThe add participant button text color
addParticipantFontThe add participant button Font
groupOptionTitleColorThe group option button text color

Customize MFUIStringSet#

The following table shows a customizable property of MFUIStringSet that appears in the Group info Screen. The MFUIStringSet is a set of strings used to compose a view. You need to modify the stringSet values in advance if you want to make changes to the view.

Property nameDescription
participantsA text that refers to text of participants Label
Add_Participant_TitleA text refers to add participant Button
CreateGroupChat_Header_Add_TitleA text refers to Add button in Contact screen
remove_from_groupA text refers to remove from group action sheet button
removeMember_titleA text refers to remove from remove confirmation alert
removeYesA text refers to yes remove from remove confirmation alert
removeNoA text refers to cancel from remove confirmation alert
make_admin_titleA text refers to make admin button from group action sheet
make_admin_subtitileA text refers to subtitle of make admin confirmation alert
leaveGroupA text refers to text of leave Label
deleteGroupA text refers to text of delete Label

Customize MFUIIconSet#

To customise common icons used in Group info, kindly refer here. The following table shows a customizable icon for Group info

Icon nameDescription
addUserAn icon used to indicate add participants
leave_groupAn icon used to indicate leave participants
ic_deletegroupAn icon used to indicate delete participants