語言

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 意圖時,該目錄想要阻止自己被選取。 透過其他 intint(如 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。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於