SuggestAppBarModel

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

This model class extends AppBarModel and provides functionality to manage the data and behavior of a SuggestAppBarView or its subclass which designed to show a single suggestion or action page. This class provides functionality to set the title, define action buttons, and handle click events for both the close button and the action buttons.

Use the Builder class to construct instances of SuggestAppBarModel.

Parameters

T

The type of SuggestAppBarView this model is associated with.

kclazz

The KClass of the SuggestAppBarView implementation.

context

The context used to access resources.

title

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

closeClickListener

The OnClickListener to be invoked when the close button is clicked. Can be null.

buttonListModel

The ButtonListModel containing the list of buttons and their styles.

Inheritors

Constructors

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

Types

Link copied to clipboard
class Builder(context: Context)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

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

Initializes the given AppBarView.