Method DocsView.setStarred
Stay organized with collections
Save and categorize content based on your preferences.
Filters the documents based on whether they are starred by the user.
If true
, only starred documents are displayed in the view. If false
, all
documents are displayed in the view.
Don't combine this setting with setEnableDrives
. When setEnableDrives(true)
is set, setStarred
is ignored.
Signature
setStarred(starred: boolean): DocsView;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
starred |
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.setStarred\n\nFilters the documents based on whether they are starred by the user.\n\nIf `true`, only starred documents are displayed in the view. If `false`, all\ndocuments are displayed in the view.\n\nDon't combine this setting with `setEnableDrives`. When `setEnableDrives(true)`\nis set, `setStarred` is ignored.\n\nSignature\n---------\n\n setStarred(starred: 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| `starred` | `boolean` | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]