Skip to main content

Widget Documentation: LMFeedPostDocumentsMediaView

Widget: LMFeedPostDocumentsMediaView

The LMFeedPostDocumentsMediaView is a customizable view for displaying a list of document media, supporting actions like showing more documents, removing documents, and configuring styles.

MethodDescription
setStyle(postDocumentsMediaViewStyle: LMFeedPostDocumentsMediaViewStyle)Applies the given style to the document media view.
configureShowMore(documentShowMoreStyle: LMFeedTextStyle)Configures the text style for the "Show More" option.
setAdapter(parentPosition: Int, mediaData: LMFeedMediaViewData, listener: LMFeedPostAdapterListener, isMediaRemovable: Boolean = false)Sets the adapter for displaying document media.
removeDocument(position: Int)Removes a document from the view at the specified position.
setShowMoreTextClickListener(listener: LMFeedOnClickListener)Registers a click listener for the "Show More" text.

View the code on GitHub

View Style: LMFeedPostDocumentsMediaViewStyle

The LMFeedPostDocumentsMediaViewStyle defines the appearance and layout properties for the LMFeedPostDocumentsMediaView, including text, icon, and visibility configurations.

FieldDescriptionType
documentNameStyleDefines the text style for the document name.LMFeedTextStyle
documentIconStyleConfigures the style for the document icon.LMFeedIconStyle
documentPageCountStyleDefines the text style for the document page count.LMFeedTextStyle
documentSizeStyleConfigures the text style for the document size.LMFeedTextStyle
documentTypeStyleDefines the text style for the document type.LMFeedTextStyle
documentShowMoreStyleConfigures the text style for the "Show More" option.LMFeedTextStyle
visibleDocumentsLimitSpecifies the limit for visible documents.Int
removeIconStyleConfigures the style for the remove icon.LMFeedIconStyle

View the code on GitHub