DocumentView.setOwnedByMe 方法
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
根据文档是归用户所有还是与用户共享来过滤文档。
请勿将此设置与 setEnableDrives
组合使用。设置 setEnableDrives(true)
和 setOwnedByMe(true)
后,不会有任何结果。
如果您未设置此选项,则视图中会显示所有文档,包括共享文档。
签名
setOwnedByMe(me: boolean): DocsView;
详细信息
参数
返回
DocsView
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method DocsView.setOwnedByMe\n\nFilters the documents based on whether they are owned by the user, or shared\nwith the user.\n\nDon't combine this setting with `setEnableDrives`. When `setEnableDrives(true)`\nand `setOwnedByMe(true)` are set, there are no results.\n\nIf you don't set this option, all documents, including shared documents, are\ndisplayed in the view.\n\nSignature\n---------\n\n setOwnedByMe(me: boolean): DocsView;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|------|-----------|----------|-------------|\n| `me` | `boolean` | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]