package Ġcom . example . movie . di Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . example . movie . ui . main . Main ViewModel Ċ import Ġdagger . Bind s Ċ import Ġdagger . Module Ċ import Ġdagger . mult ib ind ings . Into Map Ċ Ċ @ Module Ċ abstract Ġclass ĠViewModel Module Ġ{ ĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġ@ Per Application ĊĠĠĠ Ġabstract Ġfun Ġbind ViewModel Factory ( factory : ViewModel Factory ) Ġ: ViewModel Provider . Factory ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġ@ Into Map ĊĠĠĠ Ġ@ ViewModel Key ( Main ViewModel :: class ) ĊĠĠĠ Ġabstract Ġfun Ġbind Main ViewModel ( viewModel : ĠMain ViewModel ) Ġ: ViewModel Ċ Ċ }