Method DocsView.setOwnedByMe
Stay organized with collections
Save and categorize content based on your preferences.
Filters the documents based on whether they are owned by the user, or shared
with the user.
Don't combine this setting with setEnableDrives
. When setEnableDrives(true)
and setOwnedByMe(true)
are set, there are no results.
If you don't set this option, all documents, including shared documents, are
displayed in the view.
Signature
setOwnedByMe(me: boolean): DocsView;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
me |
boolean |
No |
|
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 2025-06-20 UTC.
[null,null,["Last updated 2025-06-20 UTC."],[],[],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)"]]