Method DocsView.setEnableDrives

Shows shared drives and the files they contain. Before enabling, refer to GoogleDrive API documentation for enabling shared drives.

If true, only shared drives are included in the view.

Don't combine this setting with setParent or setFileIds. Calls to this function override previous calls to setParent or setFileIds.

Don't combine this setting with setOwnedByMe. When setEnableDrives(true) and setOwnedByMe(true) are set, there are no results.

Don't combine this setting with setStarred. When setEnableDrives(true) is set, setStarred is ignored.

Signature

setEnableDrives(enabled:boolean):DocsView;

Details

Optional No
Final No
Protected No
Static No

Parameters

Name Type Optional Description
enabled 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.