Hey guys I really need help I am using Kotlin to ...
# android-databinding
l
Hey guys I really need help I am using Kotlin to create an Android App. The problem I am having is I’m trying to use a ViewModel to create an user in Firebase. After the user is created, something should be returned to the UI Fragment to let the fragment know to move forward to the next line of execution. The trouble I’m having is Firebase operations are done asynchronously, so there’s no way for me the front end to know the operation is done executing in the view model. Is there a way to create a callback or fix this?
google 1
stackoverflow 1
i
Try looking into
LiveData
and maybe even
coroutines