Partager via


DocumentsContract.Document Class

Definition

Constants related to a document, including Cursor column names and flags.

[Android.Runtime.Register("android/provider/DocumentsContract$Document", DoNotGenerateAcw=true)]
public sealed class DocumentsContract.Document : Java.Lang.Object
[<Android.Runtime.Register("android/provider/DocumentsContract$Document", DoNotGenerateAcw=true)>]
type DocumentsContract.Document = class
    inherit Object
Inheritance
DocumentsContract.Document
Attributes

Remarks

Constants related to a document, including Cursor column names and flags.

A document can be either an openable stream (with a specific MIME type), or a directory containing additional documents (with the #MIME_TYPE_DIR MIME type). A directory represents the top of a subtree containing zero or more documents, which can recursively contain even more documents and directories.

All columns are <em>read-only</em> to client applications.

Java documentation for android.provider.DocumentsContract.Document.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

ColumnDisplayName

Display name of a document, used as the primary title displayed to a user.

ColumnDocumentId

Unique ID of a document.

ColumnFlags

Flags that apply to a document.

ColumnIcon

Specific icon resource ID for a document.

ColumnLastModified

Timestamp when a document was last modified, in milliseconds since January 1, 1970 00:00:00.

ColumnMimeType

Concrete MIME type of a document.

ColumnSize

Size of a document, in bytes, or null if unknown.

ColumnSummary

Summary of a document, which may be shown to a user.

FlagDirBlocksOpenDocumentTree
Obsolete.

Flag indicating that a document is a directory that wants to block itself from being selected when the user launches an Intent#ACTION_OPEN_DOCUMENT_TREE intent.

FlagDirPrefersGrid
Obsolete.

Flag indicating that a directory prefers its contents be shown in a larger format grid.

FlagDirPrefersLastModified
Obsolete.

Flag indicating that a directory prefers its contents be sorted by #COLUMN_LAST_MODIFIED.

FlagDirSupportsCreate
Obsolete.

Flag indicating that a document is a directory that supports creation of new files within it.

FlagPartial
Obsolete.

Flag indicating that a document is not complete, likely its contents are being downloaded.

FlagSupportsCopy
Obsolete.

Flag indicating that a document can be copied to another location within the same document provider.

FlagSupportsDelete
Obsolete.

Flag indicating that a document is deletable.

FlagSupportsMetadata
Obsolete.

Flag indicating that a document has available metadata that can be read using DocumentsContract#getDocumentMetadata

FlagSupportsMove
Obsolete.

Flag indicating that a document can be moved to another location within the same document provider.

FlagSupportsRemove
Obsolete.

Flag indicating that a document can be removed from a parent.

FlagSupportsRename
Obsolete.

Flag indicating that a document can be renamed.

FlagSupportsSettings
Obsolete.

Flag indicating that a document has settings that can be configured by user.

FlagSupportsThumbnail
Obsolete.

Flag indicating that a document can be represented as a thumbnail.

FlagSupportsWrite
Obsolete.

Flag indicating that a document supports writing.

FlagVirtualDocument
Obsolete.

Flag indicating that a document is virtual, and doesn't have byte representation in the MIME type specified as #COLUMN_MIME_TYPE.

FlagWebLinkable
Obsolete.

Flag indicating that a Web link can be obtained for the document.

MimeTypeDir

MIME type of a document which is a directory that may contain additional documents.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to