Skip to main content

Widget Documentation: LMFeedAlertDialogView

Widget: LMFeedAlertDialogView

The LMFeedAlertDialogView is a customizable dialog view for presenting alerts, supporting elements like titles, subtitles, buttons, input fields, and configurable styles.

MethodDescription
setStyle(alertDialogStyle: LMFeedAlertDialogViewStyle)Applies the given style to the alert dialog view.
setAlertTitle(title: String)Sets the title of the alert dialog.
setAlertSubtitle(subtitle: String)Sets the subtitle of the alert dialog.
setAlertSelectorText(selector: String)Sets the text for the selector in the alert dialog.
setAlertPositiveButtonText(positiveButtonText: String)Sets the text for the positive button in the alert dialog.
setAlertNegativeButtonText(negativeButtonText: String)Sets the text for the negative button in the alert dialog.
setAlertInputReasonVisibility(isVisible: Boolean)Toggles the visibility of the input reason field.
setAlertInputHint(hint: String)Sets the hint text for the input field.
setAlertSelectorClickListener(listener: LMFeedOnClickListener)Registers a click listener for the selector.
setPositiveButtonClickListener(listener: LMFeedOnClickListener)Registers a click listener for the positive button.
setNegativeButtonClickListener(listener: LMFeedOnClickListener)Registers a click listener for the negative button.
setPositiveButtonEnabled(isEnabled: Boolean)Toggles the enabled state of the positive button.
getAlertInputReason(): String}Retrieves the text inputted in the reason field.

View the code on GitHub

View Style: LMFeedAlertDialogViewStyle

The LMFeedAlertDialogViewStyle defines the appearance and layout properties for the LMFeedAlertDialogView, including configurations for text, buttons, and the dialog box.

FieldDescriptionType
alertTitleTextConfigures the text style for the alert title.LMFeedTextStyle
alertSubtitleTextConfigures the text style for the alert subtitle.LMFeedTextStyle
alertNegativeButtonStyleConfigures the text style for the negative button.LMFeedTextStyle
alertPositiveButtonStyleConfigures the text style for the positive button.LMFeedTextStyle
alertSelectorStyleConfigures the text style for the selector.LMFeedTextStyle
alertInputStyleConfigures the style for the input field.LMFeedEditTextStyle
alertActivePositiveButtonColorSpecifies the color for the active positive button.Int
alertBoxElevationSpecifies the elevation of the alert dialog box.Int
alertBoxCornerRadiusSpecifies the corner radius of the alert dialog box.Int
backgroundColorSpecifies the background color of the alert dialog box.Int

View the code on GitHub