Enum DocsViewMode
Stay organized with collections
Save and categorize content based on your preferences.
DocsViewMode
is an enumerated type for displaying data within a DocsView. Use
these values in calls to DocsView.setMode
.
If using a scope other than https://www.googleapis.com/auth/drive
or
https://www.googleapis.com/auth/drive.readonly
, it is recommended to use
DocsViewMode.LIST
as the user has not granted access to thumbnails.
Signature
export enum DocsViewMode
Members
Name |
Description |
GRID |
Display documents in a thumbnail grid. |
LIST |
Display documents in a detailed list. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-20 UTC.
[null,null,["Last updated 2025-06-20 UTC."],[],[],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. |"]]