Skip to main content

Widget Documentation: LMFeedPostImageMediaView

Widget: LMFeedPostImageMediaView

The LMFeedPostImageMediaView is a customizable view for displaying an image, supporting actions like styling, setting the image source, and adding a remove icon with configurable click listeners.

MethodDescription
setStyle(lmFeedPostImageMediaViewStyle: LMFeedPostImageMediaViewStyle)Applies the given style to the image media view.
setImage(imageSrc: Any, postImageMediaViewStyle: LMFeedPostImageMediaViewStyle)Sets the image source and applies the style.
setRemoveIconClickListener(listener: LMFeedOnClickListener)Registers a click listener for the remove icon.

View the code on GitHub

View Style: LMFeedPostImageMediaViewStyle

The LMFeedPostImageMediaViewStyle defines the appearance and layout properties for the LMFeedPostImageMediaView, including configurations for the image and remove icon.

FieldDescriptionType
imageStyleConfigures the style for the image.LMFeedImageStyle
removeIconStyleConfigures the style for the remove icon.LMFeedIconStyle

View the code on GitHub