-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2
public final class AcraContentProvider extends ContentProvider
Provides access to attachments for senders For uri schema, see AcraCore.attachmentUris
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAcraContentProvider.Companion
-
Constructor Summary
Constructors Constructor Description AcraContentProvider()
-
Method Summary
Modifier and Type Method Description BooleanonCreate()Cursorquery(Uri uri, Array<String> projection, String selection, Array<String> selectionArgs, String sortOrder)Provides file metadata StringgetType(Uri uri)Provides file mimeType Uriinsert(Uri uri, ContentValues values)Integerdelete(Uri uri, String selection, Array<String> selectionArgs)Integerupdate(Uri uri, ContentValues values, String selection, Array<String> selectionArgs)ParcelFileDescriptoropenFile(Uri uri, String mode)Open a file for read -
Methods inherited from class org.acra.attachment.AcraContentProvider
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, 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
-
-
Method Detail
-
query
Cursor query(Uri uri, Array<String> projection, String selection, Array<String> selectionArgs, String sortOrder)
Provides file metadata
- Parameters:
uri- the file uriprojection- any combination of OpenableColumns.DISPLAY_NAME and OpenableColumns.SIZEselection- ignoredselectionArgs- ignoredsortOrder- ignored
-
insert
Uri insert(Uri uri, ContentValues values)
- Parameters:
uri- ignoredvalues- ignored
-
delete
Integer delete(Uri uri, String selection, Array<String> selectionArgs)
- Parameters:
uri- ignoredselection- ignoredselectionArgs- ignored
-
update
Integer update(Uri uri, ContentValues values, String selection, Array<String> selectionArgs)
- Parameters:
uri- ignoredvalues- ignoredselection- ignoredselectionArgs- ignored
-
openFile
ParcelFileDescriptor openFile(Uri uri, String mode)
Open a file for read
- Parameters:
uri- the file urimode- ignored
-
-
-
-