-
Why android_tutorial_cn says I see the following methods in public class MMKV implements SharedPreferences, SharedPreferences. Editor {
/** @deprecated */
@Deprecated
public boolean commit() {
this. sync(true);
return true;
}
/** @deprecated */
@Deprecated
public void apply() {
this. sync(false);
}
} If so, how does MMKV achieve automatic persistence and ensure that the persisted information is up-to-date if the data is not manually written to the external memory? |
Beta Was this translation helpful? Give feedback.
Answered by
lingol
Apr 24, 2023
Replies: 2 comments
-
MMKV doesn't rely on |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Ryuu-64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MMKV doesn't rely on
commit()
orapply()
from the very beginning.