DocumentView.setEnableDrives 方法
显示共享云端硬盘及其包含的文件。在启用之前,请参阅有关启用共享云端硬盘的 GoogleDrive API 文档。
如果为 true
,视图中仅包含共享云端硬盘。
签名
setEnableDrives(enabled: boolean): DocsView;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
enabled |
boolean |
否 |
|
返回
DocsView
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-15。
[null,null,["最后更新时间 (UTC):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"]]