Ofir Bar
12/27/2019, 10:44 PMGabriel Feo
01/04/2020, 10:16 PMonCreate
, so it's only initialized after onCreate
, but if it's eagerly initialized (using = getViewModel
), the viewModel will be obtained during the class init. Class init is what runs before the constructor code (if any) when a class is instantiated, initializing all the properties that you declared.