ViewPagerAppBarModel

open class ViewPagerAppBarModel<T : ViewPagerAppBarView>(kclazz: KClass<T>, context: Context, appBarModels: List<AppBarModel<out AppBarView>>) : AppBarModel<T>

This model class extends AppBarModel and provides functionality to manage the data and behavior of a ViewPagerAppBarView or its subclass.

This class holds a list of AppBarModel instances or its subclass, each representing a page within the ViewPagerAppBarView. It 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 ViewPagerAppBarModel.

Parameters

T

The type of the ViewPagerAppBarView associated with this model.

Constructors

Link copied to clipboard
constructor(kclazz: KClass<T>, context: Context, appBarModels: List<AppBarModel<out AppBarView>>)

Types

Link copied to clipboard
class Builder(context: Context, appBarModels: List<AppBarModel<out AppBarView>> = emptyList())

Functions

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

Initializes the given AppBarView.