Method DocsView.setOwnedByMe
Filters the documents based on whether they are owned by the user, or shared
with the user. Do not combine this setting with setIncludeFolders
. When
setIncludeFolders(true)
is set, setOwnedByMe
is ignored.
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 2024-11-05 UTC.
[null,null,["Last updated 2024-11-05 UTC."],[[["Filters documents in the view based on ownership (owned by the user or shared with them)."],["When `setIncludeFolders(true)` is used, the `setOwnedByMe` setting is disregarded."],["If this option is not configured, all documents, including shared ones, will be displayed."],["This method is not optional, final, protected, or static."],["Accepts a boolean parameter (`me`) to determine the filtering behavior and returns a DocsView object."]]],["This method filters documents displayed in the view. Setting `setOwnedByMe(true)` shows only user-owned documents; otherwise, shared documents are also included. This setting is overridden if `setIncludeFolders(true)` is set. The method requires a boolean parameter (`me`) to determine the filtering and returns a `DocsView` object. If not specified, all documents are included.\n"]]