Megosztás a következőn keresztül:


DocumentsContract.Document.FlagDirBlocksOpenDocumentTree Field

Definition

Caution

This constant will be removed in the future version. Use Android.Provider.DocumentContractFlags enum directly instead of this field.

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.

[Android.Runtime.Register("FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Provider.DocumentContractFlags enum directly instead of this field.", true)]
public const Android.Provider.DocumentContractFlags FlagDirBlocksOpenDocumentTree = 32768;
[<Android.Runtime.Register("FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Provider.DocumentContractFlags enum directly instead of this field.", true)>]
val mutable FlagDirBlocksOpenDocumentTree : Android.Provider.DocumentContractFlags

Field Value

Value = 32768
Attributes

Remarks

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. Individual files can still be selected when launched via other intents like Intent#ACTION_OPEN_DOCUMENT and Intent#ACTION_GET_CONTENT. Only valid when #COLUMN_MIME_TYPE is #MIME_TYPE_DIR.

Note that this flag <em>only</em> applies to the single directory to which it is applied. It does <em>not</em> block the user from selecting either a parent or child directory during an Intent#ACTION_OPEN_DOCUMENT_TREE request. In particular, the only way to guarantee that a specific directory can never be granted via an Intent#ACTION_OPEN_DOCUMENT_TREE request is to ensure that both it and <em>all of its parent directories</em> have set this flag.

Java documentation for android.provider.DocumentsContract.Document.FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE.

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.

Applies to