AppBarModel

open class AppBarModel<T : AppBarView>(@NotNull kclazz: KClass<T>, @NotNull context: Context)

The base model class for an AppBar suggestion.

This class is responsible for creating and initializing an AppBarView. It also provides an interface for handling click events on the AppBar.

Parameters

T

The type of AppBarView that this model will create.

Inheritors

Constructors

Link copied to clipboard
constructor(@NotNull kclazz: KClass<T>, @NotNull context: Context)

Types

Link copied to clipboard
fun interface OnClickListener

Interface definition for a callback to be invoked when a button in an AppBarView is clicked.

Functions

Link copied to clipboard
@NotNull
fun create(): T

Creates a new instance of the AppBarView.

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

Initializes the given AppBarView.