列舉 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 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-07 (世界標準時間)。
[null,null,["上次更新時間:2024-11-07 (世界標準時間)。"],[[["`DocsViewMode` is used to control how documents are displayed within a DocsView, using `GRID` for thumbnails and `LIST` for a detailed list view."],["When using limited scopes without thumbnail access, `DocsViewMode.LIST` is recommended to avoid potential issues."]]],[]]