Method DocsView.setMode
Selects which mode the view will use to display the documents.
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
setMode(mode: DocsViewMode): DocsView;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Returns
DocsView
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 2024-09-27 UTC.
[null,null,["Last updated 2024-09-27 UTC."],[[["Selects the display mode for documents within the view, using either list or grid view."],["When using restricted scopes, it's advisable to utilize `DocsViewMode.LIST` due to potential limitations on thumbnail access."],["This method is neither optional, final, protected, nor static."],["It accepts a single parameter, 'mode', to specify the desired display mode (list or grid)."],["Upon execution, it returns an updated DocsView object reflecting the mode change."]]],[]]