package Ġdev . may ank . co win v accine book . view model Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġdev . may ank . co win v accine book . repository . C ow in App Repository Ċ import Ġkotlinx . coroutines . delay Ċ import Ġkotlinx . coroutines . launch Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ class ĠUser Details Entry ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġc ow in App Repository : ĠC ow in App Repository Ċ ): ĠBase ViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġ_ on User Phone Num Saved Ġ= ĠMutable LiveData < String >() ĊĊĠĠĠ Ġval Ġon User Phone Num Saved : ĠLive Data < String > Ġ= Ġ_ on User Phone Num Saved ĊĊĠĠĠ Ġfun Ġsave User Mobile ( mobile : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġc ow in App Repository . save Mobile Num ( mobile ) ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdelay ( 1 0 0 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġc ow in App Repository . get Saved Mobile Num ()?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ on User Phone Num Saved . post Value ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ġ