语言

DocumentsContract.Document.FlagDirBlocksOpenDocumentTree 字段

定义

注意

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

指示文档是希望在用户启动意向时阻止自己选择的目录的 Intent#ACTION_OPEN_DOCUMENT_TREE 标志。

[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

字段值

Value = 32768
特性

注解

指示文档是希望在用户启动意向时阻止自己选择的目录的 Intent#ACTION_OPEN_DOCUMENT_TREE 标志。 通过其他意向(如 Intent#ACTION_OPEN_DOCUMENT 和 Intent#ACTION_GET_CONTENT)启动时,仍可以选择单个文件。 仅当 #COLUMN_MIME_TYPE 为 #MIME_TYPE_DIR.

请注意,此标志 仅适用于 应用它的单个目录。 它 不会 阻止用户在请求期间 Intent#ACTION_OPEN_DOCUMENT_TREE 选择父目录或子目录。 具体而言,保证无法通过请求授予特定目录的唯一 Intent#ACTION_OPEN_DOCUMENT_TREE 方法是确保它及其 所有父目录 都设置了此标志。

Java文档android.provider.DocumentsContract.Document.FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于