Factory

open class Factory(panel: AnyPanel) : ViewModelProvider.Factory

A factory class for constructing class instances that derive from FrontendViewModel with the given panel.

This class must have a constructor that takes one argument of type P.

Constructors

Link copied to clipboard
fun Factory(panel: AnyPanel)

Inherited functions

Link copied to clipboard
open override fun <T : ViewModel> create(modelClass: Class<T>): T
open override fun <T : ViewModel> create(modelClass: Class<T>, extras: CreationExtras): T