列舉 DocsViewMode
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
DocsViewMode
是列舉類型,用於在 DocsView 中顯示資料。在對 DocsView.setMode
的呼叫中使用這些值。
如果使用 https://www.googleapis.com/auth/drive
或 https://www.googleapis.com/auth/drive.readonly
以外的範圍,建議使用 DocsViewMode.LIST
,因為使用者未授予縮圖存取權。
簽名
export enum DocsViewMode
成員
名稱 |
說明 |
GRID |
以縮圖格狀顯示文件。 |
LIST |
在詳細資料清單中顯示文件。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Enum DocsViewMode\n\n`DocsViewMode` is an enumerated type for displaying data within a DocsView. Use\nthese values in calls to `DocsView.setMode`.\n\nIf using a scope other than `https://www.googleapis.com/auth/drive` or\n`https://www.googleapis.com/auth/drive.readonly`, it is recommended to use\n`DocsViewMode.LIST` as the user has not granted access to thumbnails.\n\nSignature\n---------\n\n export enum DocsViewMode\n\nMembers\n-------\n\n| Name | Description |\n|--------------------------------------|----------------------------------------|\n| [`GRID`](./picker.docsviewmode.grid) | Display documents in a thumbnail grid. |\n| [`LIST`](./picker.docsviewmode.list) | Display documents in a detailed list. |"]]