package Ġcom . native bo ys . password . manager . presentation Ċ Ċ import Ġandroidx . h ilt . Ass isted Ċ import Ġandroidx . h ilt . lifecycle . ViewModel Inject Ċ import Ġandroidx . lifecycle . Saved State Handle Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . live Data Ċ import Ġcom . native bo ys . password . manager . data . services . UserService Ċ Ċ class ĠLogin ViewModel Ġ@ ViewModel Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval ĠuserService : ĠUserService , ĊĠĠĠ Ġ@ Ass isted Ġprivate Ġval Ġstate : ĠSaved State Handle Ċ ): ĠViewModel () Ġ{ ĊĊĠĠĠ Ġval Ġdestination : ĠInt ? Ġ= Ġstate . get < Int >(" DEST INATION ") ĊĠĠĠ Ġval Ġdata : ĠString ? Ġ= Ġstate . get < String >(" DATA ") ĊĊĠĠĠ Ġfun Ġrequest Permission ( master Password : ĠString ) Ġ= Ġlive Data Ġ{ ĊĠĠĠĠĠĠĠ Ġemit ( userService . request Permission ( master Password )) ĊĠĠĠ Ġ} Ċ Ċ }