Class MyTargetContentProvider

java.lang.Object
android.content.ContentProvider
com.my.target.common.MyTargetContentProvider
All Implemented Interfaces:
android.content.ComponentCallbacks, android.content.ComponentCallbacks2

public final class MyTargetContentProvider extends android.content.ContentProvider
  • Nested Class Summary

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

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

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attachInfo(android.content.Context context, android.content.pm.ProviderInfo info)
     
    int
    delete(android.net.Uri uri, String selection, String[] selectionArgs)
     
    getType(android.net.Uri uri)
     
    android.net.Uri
    insert(android.net.Uri uri, android.content.ContentValues values)
     
    boolean
     
    android.database.Cursor
    query(android.net.Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
     
    int
    update(android.net.Uri uri, android.content.ContentValues values, String selection, String[] selectionArgs)
     

    Methods inherited from class android.content.ContentProvider

    applyBatch, applyBatch, bulkInsert, call, 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 Details

    • MyTargetContentProvider

      public MyTargetContentProvider()
  • Method Details

    • onCreate

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

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

      @Nullable public String getType(@NonNull android.net.Uri uri)
      Specified by:
      getType 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
    • delete

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

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

      public void attachInfo(android.content.Context context, android.content.pm.ProviderInfo info)
      Overrides:
      attachInfo in class android.content.ContentProvider