語言

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_DOCUMENTIntent#ACTION_GET_CONTENT)啟動時,仍可選擇個別檔案。 只有當 #COLUMN_MIME_TYPE 是 時 #MIME_TYPE_DIR才有效。

請注意,這個 <em>flag 僅</em> 適用於它所套用的單一目錄。 它不會<></em> 阻擋使用者在請求時Intent#ACTION_OPEN_DOCUMENT_TREE選擇父目錄或子目錄。 特別是,唯一能保證某個目錄永遠無法透過 Intent#ACTION_OPEN_DOCUMENT_TREE 請求被授予的方法,就是確保該目錄和 <em>的所有父目錄</em> 都已設定此旗標。

Java 文件 android.provider.DocumentsContract.Document.FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE

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

適用於