package Ġorg . fn ives . tik tok downloader . di Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . activity . Component Activity Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Lazy Ċ Ċ inline Ġfun Ġ< re ified ĠVM Ġ: ĠViewModel > ĠComponent Activity . provide ViewModels () Ġ= ĊĠĠĠ ĠViewModel Lazy ( ĊĠĠĠĠĠĠĠ ĠviewModel Class Ġ= ĠVM :: class , ĊĠĠĠĠĠĠĠ Ġstore Producer Ġ= Ġ{ ĠviewModel Store Ġ}, ĊĠĠĠĠĠĠĠ Ġfactory Producer Ġ= Ġ{ Ġcreate ViewModel Factory () Ġ} ĊĠĠĠ Ġ) Ċ Ċ inline Ġfun Ġ< re ified ĠVM Ġ: ĠViewModel > ĠFragment . provide ViewModels () Ġ= ĊĠĠĠ ĠViewModel Lazy ( ĊĠĠĠĠĠĠĠ ĠviewModel Class Ġ= ĠVM :: class , ĊĠĠĠĠĠĠĠ Ġstore Producer Ġ= Ġ{ ĠviewModel Store Ġ}, ĊĠĠĠĠĠĠĠ Ġfactory Producer Ġ= Ġ{ Ġcreate ViewModel Factory () Ġ}) Ċ Ċ fun ĠComponent Activity . create ViewModel Factory () Ġ= ĊĠĠĠ ĠService Locator . viewModel Factory ( this , Ġintent ?. extras Ġ?: ĠBundle . EMPTY ) Ċ Ċ fun ĠFragment . create ViewModel Factory () Ġ= ĊĠĠĠ ĠService Locator . viewModel Factory ( this , Ġarguments Ġ?: ĠBundle . EMPTY )