DocsView.setEnableDrives 方法
顯示共用雲端硬碟和其中的檔案。啟用前,請參閱 GoogleDrive API 說明文件,瞭解如何啟用共用雲端硬碟。
如果為 true
,則畫面中只會顯示共用雲端硬碟。
簽名
setEnableDrives(enabled: boolean): DocsView;
詳細資料
參數
名稱 |
類型 |
選用 |
說明 |
enabled |
boolean |
否 |
|
傳回
DocsView
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-15 (世界標準時間)。
[null,null,["上次更新時間:2024-11-15 (世界標準時間)。"],[[["Displays shared drives and their files, requiring prior enabling as outlined in Google Drive API documentation."],["Controls view to include only shared drives if set to `true`."],["`setEnableDrives` function takes a boolean and customizes the DocsView to include or exclude shared drives."]]],["This documentation outlines how to display shared drives within a view. The `setEnableDrives` function, requiring a boolean input (`enabled`), controls the visibility of shared drives. When `enabled` is `true`, the view will display only shared drives; otherwise, it will not. Prior to enabling, refer to the Google Drive API documentation for enabling shared drives. The function returns a `DocsView` object, and its usage is not optional.\n"]]