Java android.provider DocumentsContract fields, constructors, methods, implement or subclass

Example usage for Java android.provider DocumentsContract fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.provider DocumentsContract.

The text is from its open source code.

Field

StringPROVIDER_INTERFACE
Intent action used to identify DocumentsProvider instances.
StringEXTRA_PACKAGE_NAME
StringEXTRA_SHOW_ADVANCED
StringACTION_MANAGE_DOCUMENT
StringEXTRA_LOADING
Optional boolean flag included in a directory Cursor#getExtras() indicating that a document provider is still loading data.
StringEXTRA_INFO
Optional string included in a directory Cursor#getExtras() providing an informational message that should be shown to a user.
StringEXTRA_ERROR
Optional string included in a directory Cursor#getExtras() providing an error message that should be shown to a user.

Method

UribuildChildDocumentsUri(String authority, String parentDocumentId)
Build URI representing the children of the target directory in a document provider.
UribuildChildDocumentsUriUsingTree(Uri treeUri, String parentDocumentId)
Build URI representing the children of the target directory in a document provider.
UribuildDocumentUri(String authority, String documentId)
Build URI representing the target Document#COLUMN_DOCUMENT_ID in a document provider.
UribuildDocumentUriUsingTree(Uri treeUri, String documentId)
Build URI representing the target Document#COLUMN_DOCUMENT_ID in a document provider.
UribuildRecentDocumentsUri(String authority, String rootId)
Build URI representing the recently modified documents of a specific root in a document provider.
UribuildRootsUri(String authority)
Build URI representing the roots of a document provider.
UribuildSearchDocumentsUri(String authority, String rootId, String query)
Build URI representing a search for matching documents under a specific root in a document provider.
UricreateDocument(ContentResolver resolver, Uri parentDocumentUri, String mimeType, String displayName)
Create a new document with given MIME type and display name.
UricreateDocument(ContentProviderClient client, Uri parentDocumentUri, String mimeType, String displayName)
booleandeleteDocument(ContentResolver resolver, Uri documentUri)
Delete the given document.
voiddeleteDocument(ContentProviderClient client, Uri documentUri)
StringgetDocumentId(Uri documentUri)
Extract the Document#COLUMN_DOCUMENT_ID from the given URI.
BitmapgetDocumentThumbnail(ContentResolver resolver, Uri documentUri, Point size, CancellationSignal signal)
Return thumbnail representing the document at the given URI.
BitmapgetDocumentThumbnail(ContentProviderClient client, Uri documentUri, Point size, CancellationSignal signal)
StringgetTreeDocumentId(Uri documentUri)
Extract the via Document#COLUMN_DOCUMENT_ID from the given URI.
booleanisDocumentUri(Context context, @Nullable Uri uri)
Test if the given URI represents a Document backed by a DocumentsProvider .
booleanisTreeUri(Uri uri)
Test if the given URI represents a Document tree.
UrirenameDocument(ContentResolver resolver, Uri documentUri, String displayName)
Change the display name of an existing document.
UrirenameDocument(ContentProviderClient client, Uri documentUri, String displayName)