Widget Documentation: LMFeedPostLinkMediaView
Widget: LMFeedPostLinkMediaView
The LMFeedPostLinkMediaView is a customizable view for displaying a link preview, supporting actions like styling, setting link details, and adding click listeners for the link and its remove icon.
| Method | Description |
|---|---|
| setStyle(postLinkViewStyle: LMFeedPostLinkMediaViewStyle) | Applies the given style to the link media view. |
| setLinkTitle(linkTitle: String) | Sets the title of the link. |
| setLinkDescription(linkDescription: String) | Sets the description of the link. |
| setLinkUrl(linkUrl: String) | Sets the URL of the link. |
| setLinkImage(imageSrc: String) | Sets the image source for the link. |
| setLinkClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the link. |
| setLinkRemoveClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the remove icon. |
View Style: LMFeedPostLinkMediaViewStyle
The LMFeedPostLinkMediaViewStyle defines the appearance and layout properties for the LMFeedPostLinkMediaView, including text, icon, and box configurations.
| Field | Description | Type |
|---|---|---|
| linkTitleStyle | Configures the text style for the link title. | LMFeedTextStyle |
| linkDescriptionStyle | Configures the text style for the link description. | LMFeedTextStyle |
| linkUrlStyle | Configures the text style for the link URL. | LMFeedTextStyle |
| linkImageStyle | Configures the style for the link image. | LMFeedImageStyle |
| linkRemoveIconStyle | Configures the style for the remove icon. | LMFeedIconStyle |
| linkBoxCornerRadius | Specifies the corner radius for the link box. | Int |
| linkBoxElevation | Specifies the elevation for the link box. | Int |
| linkBoxStrokeColor | Specifies the stroke color for the link box. | Int |
| linkBoxStrokeWidth | Specifies the stroke width for the link box. | Int |
| backgroundColor | Specifies the background color of the link box. | Int |