Document Attachment
Note : If Document Attachment feature unavailable for your plan then it will not display in
MFUIActionSheetItem
.
#
InitializeYou can send the document attachment by clicking the attachment icon in the Chat screen of the user.
MFUIDocumentContentView
is extension view class of MFUIBaseMediaContentView
, which is used to display document table view cell.
MFUIDocumentContentView
consists of documentIcon, progressContentView and fileNameLabel
Property name | usage |
---|---|
documentIcon | UIImageView to show which type of document |
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 document size.
#
Document Cell ThemeCustom theme Class MFMessageCellTheme
subclass of MFUITheme
is used to change the theme of document 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 document cell.
property Name | Class | Description |
---|---|---|
documentBackgroundColor | MFMessageCellTheme | The backgound color of the document View. |
documentNameFont | MFMessageCellTheme | The text font of the document name. |
documentNameColor | MFMessageCellTheme | The text color of document name |
documentSizeFont | MFMessageCellTheme | The text font of document size Label |
documentSizeColor | MFMessageCellTheme | The text color of document size Label |
progressBackgroundColor | MFComponentTheme | The background color of progressView |
#
Customize MFUIStringSetThe following table shows a customizable property of MFUIStringSet
that appears for document 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 |
---|---|
Document | A text that refers to text of document in attachment bottom sheet |
#
Customize MFUIIconSetThe following table shows a customizable icon for document attachment.
Icon name | Description |
---|---|
ic_pdf | An icon used to indicate pdf document. |
ic_doc | An icon used to indicate doc format. |
ic_xls | An icon used to indicate xls format. |
ic_xlxs | An icon used to indicate xlxs format. |
ic_ppt | An icon used to indicate ppt format. |
ic_pptx | An icon used to indicate pptx format. |
ic_txt | An icon used to indicate txt format. |
ic_rar | An icon used to indicate rar format. |
ic_csv | An icon used to indicate csv format. |
ic_docx | An icon used to indicate docx format. |
document | An icon used to indicate document |
ic_upload | An icon used to indicate upload icon in progressView |
download | An icon used to indicate download icon in progressView |
ic_close | An icon used to indicate close icon in progressView |