Leon johnson

05/13/2020, 3:32 AM
Hey guys I'm trying to create an app and inside of my ViewModel I have firebase authentication and database set up inside of it. I'm having trouble with creating a callback for my UI. So what I'm trying to do is create an user in my viewmodel and once that's done return that success to my UI so that it can transition to the next activity. Is there a way to do this?
stackoverflow 4


05/13/2020, 6:32 AM
A lot of options here, u can simply use a callback, or use livedata, rxRelay or stateFlow