方法 DocsView.setMode
选择视图将使用哪种模式显示文档。
如果使用 https://www.googleapis.com/auth/drive
或
https://www.googleapis.com/auth/drive.readonly
,建议使用
DocsViewMode.LIST
,因为用户尚未授予对缩略图的访问权限。
签名
setMode(mode: DocsViewMode): DocsView;
详细信息
参数
返回
DocsView
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["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."]]],[]]