| 733 | } |
| 734 | |
| 735 | MMKV_JNI jobjectArray allKeys(JNIEnv *env, jobject instance, jlong handle, jboolean filterExpire) { |
| 736 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 737 | if (kv) { |
| 738 | vector<string> keys = kv->allKeys((bool) filterExpire); |
| 739 | return vector2jarray(env, keys); |
| 740 | } |
| 741 | return nullptr; |
| 742 | } |
| 743 | |
| 744 | MMKV_JNI jboolean containsKey(JNIEnv *env, jobject instance, jlong handle, jstring oKey) { |
| 745 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected