Audio Attachment

Note : If Audio Attachment feature unavailable for your plan then it will not display in MFUIActionSheetItem.


You can send the audio attachment by clicking the attachment icon in the Chat screen of the user.


MFUIAudioContentView is extension view class of MFUIBaseMediaContentView, which is used to display audio table view cell. MFUIAudioContentView consists of AudioIcon, progressContentView and fileNameLabel

Property nameusage
AudioIconUIImageView to show which type of audio
fileNameLabelUILabel to describe the file name
progressContentViewMFUIProgressContentView class to display progress,cancel,retry and download

MFUIMessageStateView contains docSizeLabel which is an UILabel to show audio size.

Audio Cell Theme#

Custom theme Class MFMessageCellTheme subclass of MFUITheme is used to change the theme of audio cell.

MFUIProgressContentView class theme can be customized with MFComponentTheme subclass of MFUITheme.

The following table shows a customizable property of MFMessageCellTheme to set font and colors in audio cell.

property NameClassDescription
audioSenderBackGroundColorMFMessageCellThemeThe backgound color of the sender audio View.
audioReceiverBackGroundColorMFMessageCellThemeThe backgound color of the receiver audio View.
audioDurationFontMFMessageCellThemeThe text font of the audio name.
audioDurationColorMFMessageCellThemeThe text color of audio name

Customize MFUIStringSet#

The following table shows a customizable property of MFUIStringSet that appears for audio attachment. 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
AudioA text that refers to text of audio in attachment bottom sheet

Customize MFUIIconSet#

The following table shows a customizable icon for audio attachment.

Icon nameDescription
musicAn icon used to indicate audio.