Hi there,
I need to go to particular destination/dialog in my app when ever the user receives HTTP error 401. Is it possible to observe/post that error from a simple kotlin class to a host activity, doesn't matter whichever fragment I am on? I do not want to abuse live data for this as this condition may only occur sometimes. Any kind help would be appreciated.
l
louiscad
12/13/2020, 4:45 PM
I'd use a StateFlow for that since we're in #coroutines. Actually, that's what I use already.