FrontendAndroidViewModel
abstract class FrontendAndroidViewModel<P : AnyPanel>(panel: P, application: Application) : FrontendViewModel<P>
Content copied to clipboard
A combination of FrontendViewModel and AndroidViewModel. Should only be used when the Application instance is really required. This should be rare however, as ViewModels should not normally rely on a context. Instead, the layout should resolve raw information from the ViewModel using its own context.
Constructors
Link copied to clipboard
fun <P : AnyPanel> FrontendAndroidViewModel(panel: P, application: Application)
Content copied to clipboard
Types
Link copied to clipboard
open class Factory(panel: AnyPanel, application: Application) : ViewModelProvider.Factory
Content copied to clipboard
A factory class for constructing class instances that derive from FrontendAndroidViewModel with the given panel and the given application instance.