Audio Attachment
Note : If Audio Attachment feature unavailable for your plan then it will not display in
MFUIActionSheetItem
.
#
InitializeYou 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 name | usage |
---|---|
AudioIcon | UIImageView to show which type of audio |
fileNameLabel | UILabel to describe the file name |
progressContentView | MFUIProgressContentView class to display progress,cancel,retry and download |
MFUIMessageStateView
contains docSizeLabel which is an UILabel to show audio size.
#
Audio Cell ThemeCustom 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 Name | Class | Description |
---|---|---|
audioSenderBackGroundColor | MFMessageCellTheme | The backgound color of the sender audio View. |
audioReceiverBackGroundColor | MFMessageCellTheme | The backgound color of the receiver audio View. |
audioDurationFont | MFMessageCellTheme | The text font of the audio name. |
audioDurationColor | MFMessageCellTheme | The text color of audio name |
#
Customize MFUIStringSetThe 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 name | Description |
---|---|
Audio | A text that refers to text of audio in attachment bottom sheet |
#
Customize MFUIIconSetThe following table shows a customizable icon for audio attachment.
Icon name | Description |
---|---|
music | An icon used to indicate audio. |