Widget Documentation: LMFeedPostingView
Widget: LMFeedPostingView
The LMFeedPostingView
is a customizable view for displaying the status of a posting operation, including progress, retry options, and success indicators with configurable styles.
Method | Description |
---|---|
setPostingText(title: String) | Sets the posting title text. |
setProgress(progress: Int) | Updates the progress of the posting operation. |
setProgressVisibility(isVisible: Boolean) | Toggles the visibility of the progress bar. |
setRetryCTAText(retryCTAText: String) | Sets the text for the retry call-to-action (CTA). |
setRetryVisibility(isVisible: Boolean) | Toggles the visibility of the retry option. |
setPostSuccessfulVisibility(isVisible: Boolean) | Toggles the visibility of the success message or indicator. |
setRetryCTAClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the retry CTA. |
setAttachmentThumbnail(uri: Uri) | Sets the thumbnail for the attachment. |
setStyle(postingViewStyle: LMFeedPostingViewStyle) | Applies the given style to the posting view. |
View Style: LMFeedPostingViewStyle
The LMFeedPostingViewStyle
defines the appearance and layout properties for the LMFeedPostingView
, including configurations for text, images, and progress indicators.
Field | Description | Type |
---|---|---|
attachmentThumbnailImageStyle | Configures the style for the attachment thumbnail image. | LMFeedImageStyle |
postingHeadingTextStyle | Configures the text style for the posting title. | LMFeedTextStyle |
progressStyle | Configures the style for the progress bar. | LMFeedProgressBarStyle |
retryButtonTextStyle | Configures the text style for the retry button. | LMFeedTextStyle |
postingDoneImageStyle | Configures the style for the success indicator image. | LMFeedImageStyle |
backgroundColor | Specifies the background color of the posting view. | Int |