We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
之前都是用rxjava或者livedata,destroy后就不更新界面了。这个框架都没有使用,直接网络请求后更新界面,如果此时activity已经destory了,不会导致崩溃吗?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
https://github.com/getActivity/EasyHttp
原来是网络请求框架自动处理呀,牛逼
EasyHttp 用到了 Jetpack 中的 Lifecycle 特性来做请求的生命周期管控,在 AndroidX 包下的 AppCompatActivity 和 Fragment 都是 LifecycleOwner 的子类,所以无需自己封装。
No branches or pull requests
之前都是用rxjava或者livedata,destroy后就不更新界面了。这个框架都没有使用,直接网络请求后更新界面,如果此时activity已经destory了,不会导致崩溃吗?
The text was updated successfully, but these errors were encountered: