SuggestAppBarItemModel

@RequiresApi(value = 23)
open class SuggestAppBarItemModel<T : SuggestAppBarItemView>(@NotNull kclazz: KClass<T>, @NotNull context: Context, @Nullable title: String?, @Nullable onClickListener: AppBarModel.OnClickListener?, @NotNull buttonListModel: ButtonListModel) : SuggestAppBarModel<T>

A model class extends SuggestAppBarModel and provides functionality to manage the data and behavior of a SuggestAppBarItemView or its subclass.

Parameters

T

The view, which must extend SuggestAppBarItemView, associated with this model

kclazz

The Kotlin class of the view.

context

The context used to access resources.

title

The title to be displayed in the app bar item. Can be null.

onClickListener

The click listener for the close button. Can be null.

buttonListModel

The model for the list of buttons to be displayed.

See also

Inheritors

Constructors

Link copied to clipboard
constructor(@NotNull kclazz: KClass<T>, @NotNull context: Context, @Nullable title: String?, @Nullable onClickListener: AppBarModel.OnClickListener?, @NotNull buttonListModel: ButtonListModel)

Types

Link copied to clipboard
class Builder(context: Context)

Functions

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

Initializes the given AppBarView.