Methode DocsView.setMode
Legt fest, in welchem Modus die Dokumente angezeigt werden.
Wenn du einen anderen Umfang als https://www.googleapis.com/auth/drive
oder https://www.googleapis.com/auth/drive.readonly
verwendest, solltest du DocsViewMode.LIST
verwenden, da der Nutzer keinen Zugriff auf Miniaturansichten gewährt hat.
Unterschrift
setMode(mode: DocsViewMode): DocsView;
Details
Optional |
Nein |
Finale |
Nein |
Geschützt |
Nein |
Statisch |
Nein |
Parameter
Gibt Folgendes zurück:
DocsView
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-08 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-08 (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."]]],[]]