package Ġcom . be ok . common . base Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . navigation . Nav Directions Ċ import Ġcom . be ok . common . util . Event Ċ import Ġcom . be ok . navigation . Navigation Command Ċ Ċ abstract Ġclass ĠBase ViewModel Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġ_ navigation Ġ= ĠMutable LiveData < Event < Navigation Command >>() ĊĠĠĠ Ġval Ġnavigation : ĠLive Data < Event < Navigation Command >> Ġget () Ġ= Ġ_ navigation ĊĊĠĠĠ Ġprotected Ġfun Ġnavigate ( directions : ĠNav Directions ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ navigation . value Ġ= ĠEvent ( Navigation Command . To ( directions )) ĊĠĠĠ Ġ} Ċ }