A B C D E F G I K L M N O P Q R S T U V W 
All Classes All Packages

A

actualSize() - Method in class com.tencent.mmkv.MMKV
Get the actual used size of the MMKV instance.
allKeys() - Method in class com.tencent.mmkv.MMKV
 
apply() - Method in class com.tencent.mmkv.MMKV
Deprecated.
This method is only for compatibility purpose. You should remove all the calls after migration to MMKV. MMKV doesn't rely on apply() to save data to file. If you really worry about losing battery and data corruption, call MMKV.async() instead.
ashmemFD() - Method in class com.tencent.mmkv.MMKV
 
ashmemMetaFD() - Method in class com.tencent.mmkv.MMKV
 
async() - Method in class com.tencent.mmkv.MMKV
Save all mmap memory to file asynchronously.

B

backedUpMMKVWithID(String, int, String, String) - Static method in class com.tencent.mmkv.MMKV
Get an backed-up MMKV instance with customize settings all in one.
backupAllToDirectory(String) - Static method in class com.tencent.mmkv.MMKV
backup all MMKV instance to dstDir
backupOneToDirectory(String, String, String) - Static method in class com.tencent.mmkv.MMKV
backup one MMKV instance to dstDir

C

call(String, String, Bundle) - Method in class com.tencent.mmkv.MMKVContentProvider
 
checkContentChangedByOuterProcess() - Method in class com.tencent.mmkv.MMKV
Check inter-process content change manually.
checkReSetCryptKey(String) - Method in class com.tencent.mmkv.MMKV
Just reset the encryption key (will not encrypt or decrypt anything).
clear() - Method in class com.tencent.mmkv.MMKV
clearAll() - Method in class com.tencent.mmkv.MMKV
Clear all the key-values inside the MMKV instance.
clearMemoryCache() - Method in class com.tencent.mmkv.MMKV
Clear memory cache of the MMKV instance.
close() - Method in class com.tencent.mmkv.MMKV
Call this method if the MMKV instance is no longer needed in the near future.
com.tencent.mmkv - package com.tencent.mmkv
 
commit() - Method in class com.tencent.mmkv.MMKV
Deprecated.
This method is only for compatibility purpose. You should remove all the calls after migration to MMKV. MMKV doesn't rely on commit() to save data to file. If you really worry about losing battery and data corruption, call MMKV.async() or MMKV.sync() instead.
contains(String) - Method in class com.tencent.mmkv.MMKV
 
containsKey(String) - Method in class com.tencent.mmkv.MMKV
Check whether or not MMKV contains the key.
contentUri(Context) - Static method in class com.tencent.mmkv.MMKVContentProvider
 
count() - Method in class com.tencent.mmkv.MMKV
 
createNativeBuffer(int) - Static method in class com.tencent.mmkv.MMKV
Create an native buffer, whose underlying memory can be directly transferred to another JNI method.
CREATOR - Static variable in class com.tencent.mmkv.ParcelableMMKV
 
cryptKey() - Method in class com.tencent.mmkv.MMKV
 

D

decodeBool(String) - Method in class com.tencent.mmkv.MMKV
 
decodeBool(String, boolean) - Method in class com.tencent.mmkv.MMKV
 
decodeBytes(String) - Method in class com.tencent.mmkv.MMKV
 
decodeBytes(String, byte[]) - Method in class com.tencent.mmkv.MMKV
 
decodeDouble(String) - Method in class com.tencent.mmkv.MMKV
 
decodeDouble(String, double) - Method in class com.tencent.mmkv.MMKV
 
decodeFloat(String) - Method in class com.tencent.mmkv.MMKV
 
decodeFloat(String, float) - Method in class com.tencent.mmkv.MMKV
 
decodeInt(String) - Method in class com.tencent.mmkv.MMKV
 
decodeInt(String, int) - Method in class com.tencent.mmkv.MMKV
 
decodeLong(String) - Method in class com.tencent.mmkv.MMKV
 
decodeLong(String, long) - Method in class com.tencent.mmkv.MMKV
 
decodeParcelable(String, Class<T>) - Method in class com.tencent.mmkv.MMKV
 
decodeParcelable(String, Class<T>, T) - Method in class com.tencent.mmkv.MMKV
 
decodeString(String) - Method in class com.tencent.mmkv.MMKV
 
decodeString(String, String) - Method in class com.tencent.mmkv.MMKV
 
decodeStringSet(String) - Method in class com.tencent.mmkv.MMKV
 
decodeStringSet(String, Set<String>) - Method in class com.tencent.mmkv.MMKV
 
decodeStringSet(String, Set<String>, Class<? extends Set>) - Method in class com.tencent.mmkv.MMKV
 
defaultMMKV() - Static method in class com.tencent.mmkv.MMKV
Create the default MMKV instance in single-process mode.
defaultMMKV(int, String) - Static method in class com.tencent.mmkv.MMKV
Create the default MMKV instance in customize process mode, with an encryption key.
delete(Uri, String, String[]) - Method in class com.tencent.mmkv.MMKVContentProvider
 
describeContents() - Method in class com.tencent.mmkv.ParcelableMMKV
 
destroyNativeBuffer(NativeBuffer) - Static method in class com.tencent.mmkv.MMKV
Destroy the native buffer.
disableProcessModeChecker() - Static method in class com.tencent.mmkv.MMKV
Manually disable the process mode checker.

E

edit() - Method in class com.tencent.mmkv.MMKV
 
enableProcessModeChecker() - Static method in class com.tencent.mmkv.MMKV
Manually enable the process mode checker.
encode(String, boolean) - Method in class com.tencent.mmkv.MMKV
 
encode(String, byte[]) - Method in class com.tencent.mmkv.MMKV
 
encode(String, double) - Method in class com.tencent.mmkv.MMKV
 
encode(String, float) - Method in class com.tencent.mmkv.MMKV
 
encode(String, int) - Method in class com.tencent.mmkv.MMKV
 
encode(String, long) - Method in class com.tencent.mmkv.MMKV
 
encode(String, Parcelable) - Method in class com.tencent.mmkv.MMKV
 
encode(String, String) - Method in class com.tencent.mmkv.MMKV
 
encode(String, Set<String>) - Method in class com.tencent.mmkv.MMKV
 

F

FUNCTION_NAME - Static variable in class com.tencent.mmkv.MMKVContentProvider
 

G

getAll() - Method in class com.tencent.mmkv.MMKV
Intentionally Not Supported.
getBoolean(String, boolean) - Method in class com.tencent.mmkv.MMKV
 
getBytes(String, byte[]) - Method in class com.tencent.mmkv.MMKV
 
getFloat(String, float) - Method in class com.tencent.mmkv.MMKV
 
getInt(String, int) - Method in class com.tencent.mmkv.MMKV
 
getLong(String, long) - Method in class com.tencent.mmkv.MMKV
 
getProcessNameByPID(Context, int) - Static method in class com.tencent.mmkv.MMKVContentProvider
 
getRootDir() - Static method in class com.tencent.mmkv.MMKV
 
getString(String, String) - Method in class com.tencent.mmkv.MMKV
 
getStringSet(String, Set<String>) - Method in class com.tencent.mmkv.MMKV
 
getType(Uri) - Method in class com.tencent.mmkv.MMKVContentProvider
 
getValueActualSize(String) - Method in class com.tencent.mmkv.MMKV
Get the actual size of the key's value.
getValueSize(String) - Method in class com.tencent.mmkv.MMKV
Get the actual size consumption of the key's value.

I

importFromSharedPreferences(SharedPreferences) - Method in class com.tencent.mmkv.MMKV
Atomically migrate all key-values from an existent SharedPreferences to the MMKV instance.
initialize(Context) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with default configuration.
initialize(Context, MMKV.LibLoader) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with a 3rd library loader.
initialize(Context, MMKV.LibLoader, MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with a 3rd library loader, and customize log level.
initialize(Context, MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with customize log level.
initialize(Context, String) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with customize root folder.
initialize(Context, String, MMKV.LibLoader) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with customize root folder, and a 3rd library loader.
initialize(Context, String, MMKV.LibLoader, MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with customize settings.
initialize(Context, String, MMKV.LibLoader, MMKVLogLevel, MMKVHandler) - Static method in class com.tencent.mmkv.MMKV
 
initialize(Context, String, MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Initialize MMKV with customize root folder, and log level.
initialize(String) - Static method in class com.tencent.mmkv.MMKV
Deprecated.
This method is deprecated due to failing to automatically disable checkProcessMode() without Context. Use the MMKV.initialize(Context, String) method instead.
initialize(String, MMKV.LibLoader) - Static method in class com.tencent.mmkv.MMKV
Deprecated.
This method is deprecated due to failing to automatically disable checkProcessMode() without Context. Use the MMKV.initialize(Context, String, LibLoader) method instead.
initialize(String, MMKV.LibLoader, MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Deprecated.
This method is deprecated due to failing to automatically disable checkProcessMode() without Context. Use the MMKV.initialize(Context, String, LibLoader, MMKVLogLevel) method instead.
initialize(String, MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Deprecated.
This method is deprecated due to failing to automatically disable checkProcessMode() without Context. Use the MMKV.initialize(Context, String, MMKVLogLevel) method instead.
insert(Uri, ContentValues) - Method in class com.tencent.mmkv.MMKVContentProvider
 
isFileValid(String) - Static method in class com.tencent.mmkv.MMKV
Check whether the MMKV file is valid or not.
isFileValid(String, String) - Static method in class com.tencent.mmkv.MMKV
Check whether the MMKV file is valid or not on customize folder.

K

KEY - Static variable in class com.tencent.mmkv.MMKVContentProvider
 
KEY_CRYPT - Static variable in class com.tencent.mmkv.MMKVContentProvider
 
KEY_MODE - Static variable in class com.tencent.mmkv.MMKVContentProvider
 
KEY_SIZE - Static variable in class com.tencent.mmkv.MMKVContentProvider
 

L

LevelDebug - com.tencent.mmkv.MMKVLogLevel
Debug level.
LevelError - com.tencent.mmkv.MMKVLogLevel
Error level.
LevelInfo - com.tencent.mmkv.MMKVLogLevel
Info level.
LevelNone - com.tencent.mmkv.MMKVLogLevel
Special level for disabling all logging.
LevelWarning - com.tencent.mmkv.MMKVLogLevel
Warning level.
loadLibrary(String) - Method in interface com.tencent.mmkv.MMKV.LibLoader
 
lock() - Method in class com.tencent.mmkv.MMKV
Exclusively inter-process lock the MMKV instance.

M

mmapID() - Method in class com.tencent.mmkv.MMKV
 
MMKV - Class in com.tencent.mmkv
An highly efficient, reliable, multi-process key-value storage framework.
MMKV.LibLoader - Interface in com.tencent.mmkv
The interface for providing a 3rd library loader (the ReLinker https://github.com/KeepSafe/ReLinker, etc).
MMKVContentChangeNotification - Interface in com.tencent.mmkv
Inter-process content change notification.
MMKVContentProvider - Class in com.tencent.mmkv
A helper class for MMKV based on Anonymous Shared Memory.
MMKVContentProvider() - Constructor for class com.tencent.mmkv.MMKVContentProvider
 
MMKVHandler - Interface in com.tencent.mmkv
Callback handler for MMKV.
mmkvLog(MMKVLogLevel, String, int, String, String) - Method in interface com.tencent.mmkv.MMKVHandler
Log Redirecting.
MMKVLogLevel - Enum in com.tencent.mmkv
The levels of MMKV log.
MMKVRecoverStrategic - Enum in com.tencent.mmkv
The recover strategic of MMKV on errors.
mmkvWithAshmemFD(String, int, int, String) - Static method in class com.tencent.mmkv.MMKV
Get an ashmem MMKV instance that has been initiated by another process.
mmkvWithAshmemID(Context, String, int, int, String) - Static method in class com.tencent.mmkv.MMKV
Create an MMKV instance base on Anonymous Shared Memory, aka not synced to any disk files.
mmkvWithID(String) - Static method in class com.tencent.mmkv.MMKV
Create an MMKV instance with an unique ID (in single-process mode).
mmkvWithID(String, int) - Static method in class com.tencent.mmkv.MMKV
Create an MMKV instance in single-process or multi-process mode.
mmkvWithID(String, int, String) - Static method in class com.tencent.mmkv.MMKV
Create an MMKV instance in customize process mode, with an encryption key.
mmkvWithID(String, int, String, String) - Static method in class com.tencent.mmkv.MMKV
Create an MMKV instance with customize settings all in one.
mmkvWithID(String, String) - Static method in class com.tencent.mmkv.MMKV
Create an MMKV instance in customize folder.
MULTI_PROCESS_MODE - Static variable in class com.tencent.mmkv.MMKV
Multi-process mode.

N

NativeBuffer - Class in com.tencent.mmkv
A native memory wrapper, whose underlying memory can be passed to another JNI method directly.
NativeBuffer(long, int) - Constructor for class com.tencent.mmkv.NativeBuffer
 

O

onContentChangedByOuterProcess(String) - Method in interface com.tencent.mmkv.MMKVContentChangeNotification
Inter-process content change notification.
onCreate() - Method in class com.tencent.mmkv.MMKVContentProvider
 
OnErrorDiscard - com.tencent.mmkv.MMKVRecoverStrategic
The default strategic is to discard everything on errors.
OnErrorRecover - com.tencent.mmkv.MMKVRecoverStrategic
The recover strategic will try to recover as much data as possible.
onExit() - Static method in class com.tencent.mmkv.MMKV
Notify MMKV that App is about to exit.
onMMKVCRCCheckFail(String) - Method in interface com.tencent.mmkv.MMKVHandler
By default MMKV will discard all data on crc32-check failure.
onMMKVFileLengthError(String) - Method in interface com.tencent.mmkv.MMKVHandler
By default MMKV will discard all data on file length mismatch.

P

pageSize() - Static method in class com.tencent.mmkv.MMKV
 
ParcelableMMKV - Class in com.tencent.mmkv
A helper class for MMKV based on Anonymous Shared Memory.
ParcelableMMKV(MMKV) - Constructor for class com.tencent.mmkv.ParcelableMMKV
 
pointer - Variable in class com.tencent.mmkv.NativeBuffer
 
putBoolean(String, boolean) - Method in class com.tencent.mmkv.MMKV
 
putBytes(String, byte[]) - Method in class com.tencent.mmkv.MMKV
 
putFloat(String, float) - Method in class com.tencent.mmkv.MMKV
 
putInt(String, int) - Method in class com.tencent.mmkv.MMKV
 
putLong(String, long) - Method in class com.tencent.mmkv.MMKV
 
putString(String, String) - Method in class com.tencent.mmkv.MMKV
 
putStringSet(String, Set<String>) - Method in class com.tencent.mmkv.MMKV
 

Q

query(Uri, String[], String, String[], String) - Method in class com.tencent.mmkv.MMKVContentProvider
 

R

registerContentChangeNotify(MMKVContentChangeNotification) - Static method in class com.tencent.mmkv.MMKV
Register for MMKV inter-process content change notification.
registerHandler(MMKVHandler) - Static method in class com.tencent.mmkv.MMKV
Deprecated.
This method is deprecated. Use the MMKV.initialize(Context, String, LibLoader, MMKVLogLevel, MMKVHandler) method instead.
registerOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener) - Method in class com.tencent.mmkv.MMKV
Intentionally Not Supported by MMKV.
reKey(String) - Method in class com.tencent.mmkv.MMKV
Transform plain text into encrypted text, or vice versa by passing a null encryption key.
remove(String) - Method in class com.tencent.mmkv.MMKV
 
removeValueForKey(String) - Method in class com.tencent.mmkv.MMKV
 
removeValuesForKeys(String[]) - Method in class com.tencent.mmkv.MMKV
Batch remove some keys from the MMKV instance.
restoreAllFromDirectory(String) - Static method in class com.tencent.mmkv.MMKV
restore all MMKV instance from srcDir
restoreOneMMKVFromDirectory(String, String, String) - Static method in class com.tencent.mmkv.MMKV
restore one MMKV instance from srcDir

S

setLogLevel(MMKVLogLevel) - Static method in class com.tencent.mmkv.MMKV
Set the log level of MMKV.
SINGLE_PROCESS_MODE - Static variable in class com.tencent.mmkv.MMKV
Single-process mode.
size - Variable in class com.tencent.mmkv.NativeBuffer
 
sync() - Method in class com.tencent.mmkv.MMKV
Save all mmap memory to file synchronously.

T

toMMKV() - Method in class com.tencent.mmkv.ParcelableMMKV
 
totalSize() - Method in class com.tencent.mmkv.MMKV
Get the size of the underlying file.
trim() - Method in class com.tencent.mmkv.MMKV
The MMKV.totalSize() of an MMKV instance won't reduce after deleting key-values, call this method after lots of deleting if you care about disk usage.
tryLock() - Method in class com.tencent.mmkv.MMKV
Try exclusively inter-process lock the MMKV instance.

U

unlock() - Method in class com.tencent.mmkv.MMKV
Exclusively inter-process unlock the MMKV instance.
unregisterContentChangeNotify() - Static method in class com.tencent.mmkv.MMKV
Unregister for MMKV inter-process content change notification.
unregisterHandler() - Static method in class com.tencent.mmkv.MMKV
Unregister the handler for MMKV.
unregisterOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener) - Method in class com.tencent.mmkv.MMKV
Intentionally Not Supported by MMKV.
update(Uri, ContentValues, String, String[]) - Method in class com.tencent.mmkv.MMKVContentProvider
 

V

valueOf(String) - Static method in enum com.tencent.mmkv.MMKVLogLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.tencent.mmkv.MMKVRecoverStrategic
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.tencent.mmkv.MMKVLogLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.tencent.mmkv.MMKVRecoverStrategic
Returns an array containing the constants of this enum type, in the order they are declared.
version() - Static method in class com.tencent.mmkv.MMKV
 

W

wantLogRedirecting() - Method in interface com.tencent.mmkv.MMKVHandler
 
writeToParcel(Parcel, int) - Method in class com.tencent.mmkv.ParcelableMMKV
 
writeValueToNativeBuffer(String, NativeBuffer) - Method in class com.tencent.mmkv.MMKV
Write the value of the key to the native buffer.
A B C D E F G I K L M N O P Q R S T U V W 
All Classes All Packages