Class TedPermissionProvider
java.lang.Object
android.content.ContentProvider
com.gun0912.tedpermission.provider.TedPermissionProvider
- All Implemented Interfaces:
ComponentCallbacks,ComponentCallbacks2
-
Nested Class Summary
Nested classes/interfaces inherited from class android.content.ContentProvider
ContentProvider.CallingIdentity, ContentProvider.PipeDataWriter<T extends Object> -
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionintinsert(Uri uri, ContentValues values) booleanonCreate()intupdate(Uri uri, ContentValues values, String selection, String[] selectionArgs) Methods inherited from class android.content.ContentProvider
applyBatch, applyBatch, attachInfo, 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
-
Field Details
-
context
-
-
Constructor Details
-
TedPermissionProvider
public TedPermissionProvider()
-
-
Method Details
-
onCreate
public boolean onCreate()- Specified by:
onCreatein classContentProvider
-
query
@Nullable public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) - Specified by:
queryin classContentProvider
-
getType
- Specified by:
getTypein classContentProvider
-
insert
- Specified by:
insertin classContentProvider
-
delete
- Specified by:
deletein classContentProvider
-
update
public int update(@NonNull Uri uri, @Nullable ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) - Specified by:
updatein classContentProvider
-