-
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.
Replies: 2 comments
-
MMKV doesn't rely on |
Beta Was this translation helpful? Give feedback.
MMKV doesn't rely on
commit()
orapply()
from the very beginning.