SuggestAppBarItemWhiteCaseModel

open class SuggestAppBarItemWhiteCaseModel<T : SuggestAppBarItemWhiteCaseView> @JvmOverloads constructor(kclazz: KClass<T>, context: Context, title: String? = null, titleMaxLine: Int = 0, subTitle: String? = null, subTitleMaxLine: Int = 0, imageDrawable: Drawable? = null, closeClickListener: AppBarModel.OnClickListener? = null, buttonListModel: ButtonListModel) : SuggestAppBarItemModel<T>

A model class extending SuggestAppBarItemModel specifically designed for SuggestAppBarItemWhiteCaseView, providing tailored styling and behavior for views displayed on a white background ("white case").

Use the Builder class to construct instances of SuggestAppBarItemWhiteCaseModel.

Parameters

T

The type of SuggestAppBarItemWhiteCaseView associated with this model.

kclazz

The Kotlin class (KClass) of the view.

context

The context used to access resources and layout inflaters.

title

The primary title text to be displayed. Can be null.

titleMaxLine

Maximum number of lines for the primary title. Defaults to 0.

subTitle

The subtitle text to be displayed beneath the title. Can be null.

subTitleMaxLine

Maximum number of lines for the subtitle. Defaults to 0.

imageDrawable

Optional icon or image drawable displayed alongside the text content. Can be null.

closeClickListener

The click listener invoked when the close/dismiss button is clicked. Can be null.

buttonListModel

The ButtonListModel containing action button models and styling information.

See also

Constructors

Link copied to clipboard
constructor(kclazz: KClass<T>, context: Context, title: String? = null, titleMaxLine: Int = 0, subTitle: String? = null, subTitleMaxLine: Int = 0, imageDrawable: Drawable? = null, closeClickListener: AppBarModel.OnClickListener? = null, buttonListModel: ButtonListModel)

Types

Link copied to clipboard
class Builder(context: Context)

Builder class for constructing instances of SuggestAppBarItemWhiteCaseModel.

Functions

Link copied to clipboard
open override fun init(moduleView: T): T

Initializes the given AppBarView.