package Ġcom . prime holding . prime sample app . di . module Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . prime holding . prime sample app . di . util . ViewModel Factory Ċ import Ġcom . prime holding . prime sample app . di . util . ViewModel Key Ċ import Ġcom . prime holding . prime sample app . view model . Counter ViewModel Ċ import Ġcom . prime holding . prime sample app . view model . Details ViewModel Ċ import Ġdagger . Bind s Ċ import Ġdagger . Module Ċ import Ġdagger . mult ib ind ings . Into Map Ċ Ċ @ Module Ċ abstract Ġclass ĠViewModel Module Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠUse Ġas Ġshown Ġin Ġthe Ġcomment Ġbelow ĊĠĠĠĠ Ġ*/ Ċ Ċ // ĠĠĠ Ġ@ Bind s Ċ // ĠĠĠ Ġ@ Into Map Ċ // ĠĠĠ Ġ@ ViewModel Key ( Your ViewModel Class :: class ) Ċ // ĠĠĠ Ġinternal Ġabstract Ġfun Ġyour ViewModel Class ( viewModel : ĠYour ViewModel Class ): ĠViewModel ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġ@ Into Map ĊĠĠĠ Ġ@ ViewModel Key ( Counter ViewModel :: class ) ĊĠĠĠ Ġinternal Ġabstract Ġfun Ġcounter ViewModel ( viewModel : ĠCounter ViewModel ): ĠViewModel ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġ@ Into Map ĊĠĠĠ Ġ@ ViewModel Key ( Details ViewModel :: class ) ĊĠĠĠ Ġinternal Ġabstract Ġfun Ġdetails ViewModel ( viewModel : ĠDetails ViewModel ): ĠViewModel ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġinternal Ġabstract Ġfun Ġbind ViewModel Factory ( factory : ĠViewModel Factory ): ĠViewModel Provider . Factory Ċ } Ċ