Se true, nella visualizzazione sono inclusi solo i Drive condivisi.
Non combinare questa impostazione con setParent o setFileIds. Le chiamate a questa funzione sostituiscono le chiamate precedenti a setParent o setFileIds.
Non combinare questa impostazione con setOwnedByMe. Quando setEnableDrives(true)
e setOwnedByMe(true) sono impostati, non vengono visualizzati risultati.
Non combinare questa impostazione con setStarred. Se viene impostato setEnableDrives(true), setStarred viene ignorato.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-25 UTC."],[],[],null,["# Method DocsView.setEnableDrives\n\nShows shared drives and the files they contain. Before enabling, refer to\n[GoogleDrive API documentation for enabling shared drives](/workspace/drive/v3/web/enable-shareddrives).\n\nIf `true`, only shared drives are included in the view.\n\nDon't combine this setting with `setParent` or `setFileIds`. Calls to this\nfunction override previous calls to `setParent` or `setFileIds`.\n\nDon't combine this setting with `setOwnedByMe`. When `setEnableDrives(true)`\nand `setOwnedByMe(true)` are set, there are no results.\n\nDon't combine this setting with `setStarred`. When `setEnableDrives(true)` is\nset, `setStarred` is ignored.\n\nSignature\n---------\n\n setEnableDrives(enabled: 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| `enabled` | `boolean` | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]