方法 DocsView.setIncludeFolders
在视图项中显示文件夹。请勿与 setOwnedByMe
组合使用。设置 setIncludeFolders(true)
后,系统会忽略 setOwnedByMe
。
如果您未设置此选项,视图中将不会显示文件夹。
签名
setIncludeFolders(included: boolean): DocsView;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
included |
boolean |
否 |
|
返回
DocsView
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["The `setIncludeFolders` method controls the display of folders within the view items, and if set to `true`, it overrides the `setOwnedByMe` setting."],["By default, folders are not displayed in the view unless you explicitly enable them using this method."],["This method is a non-final, non-protected, and non-static member of the `DocsView` class and accepts a boolean parameter indicating whether to include folders."],["Utilizing `setIncludeFolders`, developers can manipulate the visibility of folders within the `DocsView` and ultimately refine the user's document browsing experience."]]],["The `setIncludeFolders(included: boolean)` method controls folder visibility in the view items. Setting `included` to `true` displays folders; otherwise, folders are hidden. When `setIncludeFolders(true)` is applied, the `setOwnedByMe` setting is disregarded. This method returns a `DocsView` object, is non-optional, and requires a boolean `included` parameter to function. It is not a final, protected, or static method.\n"]]