Metoda DocsView.setEnableDrives
Pokazuje dyski współdzielone i znajdujące się na nich pliki. Przed włączeniem zapoznaj się z dokumentacją interfejsu API Dysku Google dotyczącą włączania dysków współdzielonych.
Jeśli true
, widok zawiera tylko dyski współdzielone.
Podpis
setEnableDrives(enabled: boolean): DocsView;
Szczegóły
Opcjonalnie |
Nie |
Finał |
Nie |
Chroniony |
Nie |
Statyczny |
Nie |
Parametry
Nazwa |
Typ |
Opcjonalnie |
Opis |
enabled |
boolean |
Nie |
|
Zwroty
DocsView
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-15 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-15 UTC."],[[["Displays shared drives and their files, requiring prior enabling as outlined in Google Drive API documentation."],["Controls view to include only shared drives if set to `true`."],["`setEnableDrives` function takes a boolean and customizes the DocsView to include or exclude shared drives."]]],["This documentation outlines how to display shared drives within a view. The `setEnableDrives` function, requiring a boolean input (`enabled`), controls the visibility of shared drives. When `enabled` is `true`, the view will display only shared drives; otherwise, it will not. Prior to enabling, refer to the Google Drive API documentation for enabling shared drives. The function returns a `DocsView` object, and its usage is not optional.\n"]]