Package com.tencent.mmkv
Class MMKVContentProvider
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2
public class MMKVContentProvider extends ContentProvider
A helper class for MMKV based on Anonymous Shared Memory. mmkvWithAshmemID
-
-
Field Summary
Fields Modifier and Type Field Description public final static intTRIM_MEMORY_BACKGROUNDpublic final static intTRIM_MEMORY_COMPLETEpublic final static intTRIM_MEMORY_MODERATEpublic final static intTRIM_MEMORY_RUNNING_CRITICALpublic final static intTRIM_MEMORY_RUNNING_LOWpublic final static intTRIM_MEMORY_RUNNING_MODERATEpublic final static intTRIM_MEMORY_UI_HIDDEN
-
Constructor Summary
Constructors Constructor Description MMKVContentProvider()
-
Method Summary
Modifier and Type Method Description booleanonCreate()Bundlecall(@NonNull() String method, @Nullable() String mmapID, @Nullable() Bundle extras)StringgetType(@NonNull() Uri uri)Cursorquery(@NonNull() Uri uri, @Nullable() Array<String> projection, @Nullable() String selection, @Nullable() Array<String> selectionArgs, @Nullable() String sortOrder)intupdate(@NonNull() Uri uri, @Nullable() ContentValues values, @Nullable() String selection, @Nullable() Array<String> selectionArgs)intdelete(@NonNull() Uri uri, @Nullable() String selection, @Nullable() Array<String> selectionArgs)Uriinsert(@NonNull() Uri uri, @Nullable() ContentValues values)-
Methods inherited from class android.content.ContentProvider
applyBatch, attachInfo, bulkInsert, canonicalize, clearCallingIdentity, delete, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getTypeAnonymous, getWritePermission, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openFile, openPipeHelper, openTypedAssetFile, query, refresh, requireContext, restoreCallingIdentity, shutdown, uncanonicalize, update -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreate
boolean onCreate()
-
call
@Nullable() Bundle call(@NonNull() String method, @Nullable() String mmapID, @Nullable() Bundle extras)
-
query
@Nullable() Cursor query(@NonNull() Uri uri, @Nullable() Array<String> projection, @Nullable() String selection, @Nullable() Array<String> selectionArgs, @Nullable() String sortOrder)
-
update
int update(@NonNull() Uri uri, @Nullable() ContentValues values, @Nullable() String selection, @Nullable() Array<String> selectionArgs)
-
delete
int delete(@NonNull() Uri uri, @Nullable() String selection, @Nullable() Array<String> selectionArgs)
-
-
-
-