FrontendViewModel

abstract class FrontendViewModel<P : AnyPanel>(val panel: P) : LifecycleViewModel, PanelProvider<P>

A ViewModel that references the panel that hosts this ViewModel.

Parameters

P

The type of the panel.

Constructors

Link copied to clipboard
fun <P : AnyPanel> FrontendViewModel(panel: P)

Types

Link copied to clipboard

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

Properties

Link copied to clipboard

Whether or not safety lock is currently enabled.

Link copied to clipboard
open override val panel: P

The Panel of type P that hosts this ViewModel.

Inherited functions

Link copied to clipboard
Link copied to clipboard
override fun getLifecycle(): Lifecycle

Inheritors

Link copied to clipboard