DocumentsContractCompat

public final class DocumentsContractCompat


Helper for accessing features in DocumentsContract.

Summary

Nested types

DocumentsContractCompat.DocumentCompat

Helper for accessing features in DocumentsContract.Document.

Public constructors

Public methods

static @Nullable Uri
buildChildDocumentsUri(
    @NonNull String authority,
    @Nullable String parentDocumentId
)

Build URI representing the children of the target directory in a document provider.

static @Nullable Uri
buildChildDocumentsUriUsingTree(
    @NonNull Uri treeUri,
    @NonNull String parentDocumentId
)

Build URI representing the children of the target directory in a document provider.

static @Nullable Uri
buildDocumentUri(@NonNull String authority, @NonNull String documentId)

Build URI representing the target COLUMN_DOCUMENT_ID in a document provider.

static @Nullable Uri

Build URI representing the target COLUMN_DOCUMENT_ID in a document provider.

static @Nullable Uri
buildTreeDocumentUri(@NonNull String authority, @NonNull String documentId)

Build URI representing access to descendant documents of the given COLUMN_DOCUMENT_ID.

static @Nullable Uri
createDocument(
    @NonNull ContentResolver content,
    @NonNull Uri parentDocumentUri,
    @NonNull String mimeType,
    @NonNull String displayName
)

Create a new document with given MIME type and display name.

static @Nullable String
getDocumentId(@NonNull Uri documentUri)

Extract the COLUMN_DOCUMENT_ID from the given URI.

static @Nullable String