-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
onDestroy方法中必须调用MMKV.onExit()方法嘛? #57
Comments
Called when the process leaves, it can immediately synchronize the data to the file and empty the cache data for that process. |
如果不调用,有没有问题? |
It's quit OK not calling onExit() in onDestroy. Data won't lose if there's no immediate device shutdown. |
But how to know the process is leaving? Calling in onDestroy() in every Activity and Service? |
I hate to repeat myself.
|
onDestroy方法调用MMKV.onExit是为了清除缓存嘛?还有其它作用嘛?如果不调用有什么问题?
The text was updated successfully, but these errors were encountered: