Package com.my.target.common
Class MyTargetContentProvider
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2
public final class MyTargetContentProvider extends ContentProvider
-
-
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 MyTargetContentProvider()
-
Method Summary
Modifier and Type Method Description voidattachInfo(Context context, ProviderInfo info)intdelete(@NonNull() Uri uri, @Nullable() String selection, @Nullable() Array<String> selectionArgs)StringgetType(@NonNull() Uri uri)Uriinsert(@NonNull() Uri uri, @Nullable() ContentValues values)booleanonCreate()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)-
Methods inherited from class android.content.ContentProvider
applyBatch, bulkInsert, call, canonicalize, clearCallingIdentity, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getTypeAnonymous, getWritePermission, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openFile, openPipeHelper, openTypedAssetFile, refresh, requireContext, restoreCallingIdentity, shutdown, uncanonicalize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
attachInfo
void attachInfo(Context context, ProviderInfo info)
-
delete
int delete(@NonNull() Uri uri, @Nullable() String selection, @Nullable() Array<String> selectionArgs)
-
insert
@Nullable() Uri insert(@NonNull() Uri uri, @Nullable() ContentValues values)
-
onCreate
boolean onCreate()
-
query
@Nullable() Cursor query(@NonNull() Uri uri, @Nullable() Array<String> projection, @Nullable() String selection, @Nullable() Array<String> selectionArgs, @Nullable() String sortOrder)
-
-
-
-