Class MMKVContentProvider

    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.content.ContentProvider

        android.content.ContentProvider.CallingIdentity, android.content.ContentProvider.PipeDataWriter<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String FUNCTION_NAME  
      protected static java.lang.String KEY  
      protected static java.lang.String KEY_CRYPT  
      protected static java.lang.String KEY_MODE  
      protected static java.lang.String KEY_SIZE  
      • Fields inherited from interface android.content.ComponentCallbacks2

        TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
    • Method Summary

      Modifier and Type Method Description
      android.os.Bundle call​(java.lang.String method, java.lang.String mmapID, android.os.Bundle extras)  
      protected static android.net.Uri contentUri​(android.content.Context context)  
      int delete​(android.net.Uri uri, java.lang.String selection, java.lang.String[] selectionArgs)  
      protected static java.lang.String getProcessNameByPID​(android.content.Context context, int pid)  
      java.lang.String getType​(android.net.Uri uri)  
      android.net.Uri insert​(android.net.Uri uri, android.content.ContentValues values)  
      boolean onCreate()  
      android.database.Cursor query​(android.net.Uri uri, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)  
      int update​(android.net.Uri uri, android.content.ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs)  
      • Methods inherited from class android.content.ContentProvider

        applyBatch, applyBatch, attachInfo, bulkInsert, call, canonicalize, clearCallingIdentity, delete, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getTypeAnonymous, getWritePermission, insert, isTemporary, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, requireContext, restoreCallingIdentity, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MMKVContentProvider

        public MMKVContentProvider()
    • Method Detail

      • contentUri

        @Nullable
        protected static android.net.Uri contentUri​(android.content.Context context)
      • onCreate

        public boolean onCreate()
        Specified by:
        onCreate in class android.content.ContentProvider
      • getProcessNameByPID

        protected static java.lang.String getProcessNameByPID​(@NonNull
                                                              android.content.Context context,
                                                              int pid)
      • call

        @Nullable
        public android.os.Bundle call​(@NonNull
                                      java.lang.String method,
                                      @Nullable
                                      java.lang.String mmapID,
                                      @Nullable
                                      android.os.Bundle extras)
        Overrides:
        call in class android.content.ContentProvider
      • getType

        @Nullable
        public java.lang.String getType​(@NonNull
                                        android.net.Uri uri)
        Specified by:
        getType in class android.content.ContentProvider
      • query

        @Nullable
        public android.database.Cursor query​(@NonNull
                                             android.net.Uri uri,
                                             @Nullable
                                             java.lang.String[] projection,
                                             @Nullable
                                             java.lang.String selection,
                                             @Nullable
                                             java.lang.String[] selectionArgs,
                                             @Nullable
                                             java.lang.String sortOrder)
        Specified by:
        query in class android.content.ContentProvider
      • update

        public int update​(@NonNull
                          android.net.Uri uri,
                          @Nullable
                          android.content.ContentValues values,
                          @Nullable
                          java.lang.String selection,
                          @Nullable
                          java.lang.String[] selectionArgs)
        Specified by:
        update in class android.content.ContentProvider
      • delete

        public int delete​(@NonNull
                          android.net.Uri uri,
                          @Nullable
                          java.lang.String selection,
                          @Nullable
                          java.lang.String[] selectionArgs)
        Specified by:
        delete in class android.content.ContentProvider
      • insert

        @Nullable
        public android.net.Uri insert​(@NonNull
                                      android.net.Uri uri,
                                      @Nullable
                                      android.content.ContentValues values)
        Specified by:
        insert in class android.content.ContentProvider