ViewModel

constructor(context: Context, savedInstanceState: Bundle)

Restore the ViewModel from a context and the savedInstanceState. Can throw IllegalArgumentException when the project cannot be found or onSaveInstanceState was not called.


constructor(context: Context, project: Project, product: Product, scannedCode: ScannedCode)