枚举 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 |
在详细列表中显示文档。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]