You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello DrJacky,
Thanks for the amazing tutorial on clean architecture.
I am using this repo so far. but recently I wanted to check internet connectivity to check if user is offline, it yes then fetch data from database else from api.
To do that I need context in my repositoyimpl, How to do that?
The text was updated successfully, but these errors were encountered:
@droidwithme The best practice could be that you do the network request, get the UnknownHostException or SocketTimeoutException, then on the Presentation layer, you act based on that.
Hello DrJacky,
Thanks for the amazing tutorial on clean architecture.
I am using this repo so far. but recently I wanted to check internet connectivity to check if user is offline, it yes then fetch data from database else from api.
To do that I need context in my repositoyimpl, How to do that?
The text was updated successfully, but these errors were encountered: