Factory

open class Factory(panel: AnyPanel, application: Application) : ViewModelProvider.Factory

A factory class for constructing class instances that derive from FrontendAndroidViewModel with the given panel and the given application instance.

The first constructor argument must be of type P and the second argument should be of type Application.

Constructors

Link copied to clipboard
fun Factory(panel: AnyPanel, application: Application)

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