|
What I'm trying to do is:
- Have my ShellViewModel conductor that receives AuthenticateViewModel in the constructor.
- AuthenticateViewModel is activated on initialisation. AuthenticateViewModel is constructed with success & failure screens.
- On activation of AuthenticateViewModel, I want it to call my coroutine to Authenticate user automatically.
- If no error is thrown, then transition is made to the success screen, otherwise the failure screen.
|